Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML and Javascript

Status
Not open for further replies.

mozingod

MIS
Jul 9, 2002
227
0
0
US
Running my page through the validator with onMouseOver, onClick, and onMouseOut attributes on an anchor tag throws out an error. How can I still use these and stay XHTML compliant? Thanks! Darrell Mozingo
 
I am using mouseover in a page that validates as XHTML 1.0
It was throwing out errors at me until I made sure that the words were all lower case like this

onmouseover="imgOn('img1')" onmouseout="imgOff('img1')"

instead of leaving it as

onMouseOver="imgOn('img1')" onMouseOut="imgOff('img1')"

Hope this helps
Moira
"Those that stop learning, stop living."
 
All tags and attributes have to be in lowercase for XHTML.

Rick
 
All tags and attributes have to be in lowercase for XHTML.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top