PDA

View Full Version : onFocus in XHTML


r0ck1t
11-20-2003, 04:07 AM
I have decided now that XHTML/CSS compliancy is a must and am recoding to acheive this, but I have a login box on my page and am using onFocus to clear the textfields of their default values.

This won't validate as XHTML 1.0 Transitional, is there a solution?


onFocus=""javascript:window.qLogin.uName.value=''""

liorean
11-20-2003, 05:15 AM
In XHTML, all attributes are lowercase. onFocus --> onfocus.

r0ck1t
11-20-2003, 05:56 AM
Thanks

/me hangs head in stupidity....