[thelist] Javascript not validating

Kevin Switzer Kevin.Switzer at Stamats.com
Thu Sep 23 14:43:48 CDT 2004


I have the following code in a page, and the HTML is not validating....

 

<script language="JavaScript" type="text/javascript">

<!--

document.write('<a href="Javascript:forward2()"><img
src="/images/home/random/R'+which+'.jpg" width="331" height="199"
border="0" id="photoslider" alt="Click to view next image"></a>');

//-->

</script>

 

 

The W3C HTML Validator gives me this error:

 

1.	Line 77, column 182: end tag for element "A" which is not open

...r" alt="Click to view next image"></a>');

 

Any ideas on how I can fix this??



More information about the thelist mailing list