Forum Moderators: open
document.write('<a href="product1.html" onmouseover="mouseOver(\'pans\',\'pans_hov\')"><img src="images/rollovers/pans.gif"/></a>')
When i try to validate this, W3 reports end tag for element "A" which is not open, referring to the closing A tag
when i replace that with < and >, it shows as </a> on my html page
Is this a catch 22 impossible to get around?
You can either use standard HTML comments around the inline Javascript or place the JS is a separate file if you really want to get rid of the "error", otherwise just leave it as it is.