I want to have a form input box have words in it but when the words are clicked on, it empties itself so the user can put what they need in the box. I would use
HTML Code:
onFocus="if ( value == 'in box now' ) { value = ''; }" onBlur="if ( value == '' ) { value = 'in box now'; }"
The problem is that XHTML doesn't allow the use of onBlur and onFocus. This will probably require some javascript, but I'm not very well versed in that area.
Thanks,
Micah
|