Results 1 to 2 of 2
Thread: OnFocus Background change
Aug 24, 2007, 04:54 #1
- Join Date
- Jan 2006
- Yorkshire, UK
- 0 Post(s)
- 0 Thread(s)
OnFocus Background change
First off, I know nothing about JS. Second, I'm looking to achieve the effect of having a search box e.g.
[xhtml]<input type="text" class="search" />[/xhtml]
But when someone clicks in the search box, I want it to change to
Then when they exit it change back to:
I got linked to here: http://www.w3schools.com/jsref/jsref_onfocus.asp however that doesn't fit my needs as when you click out of the box, it's still yellow.
Any help would be greatly appreciated .