helo frds i want change in colour of textbox background colour throuigh javascript. please tel me this answewr? thanks
it's rather simple really. create two css classes and change them on the onfocus and onblur events. example: css: .normal { background-color:gray; } .focus { background-color:white; } Code (markup): and then as for the javascript part... <input type="text" size="40" class="normal" onfocus="this.className='focus'" onblur="this.className='normal'" /> Code (markup):