[thelist] Javascript not validating
Michael Pack
michaelpack at wvdhhr.org
Thu Sep 23 15:04:16 CDT 2004
Kevin, how about calling the javascript from an external file,
separating your javascript from the html you are validating?
<script language="javascript" type="text/javascript"
src="scripts/photoslider.js">
//<![CDATA[
/* ...Javascript called to load photoslider... */
//]]>
</script>
Regards,
MP
>>> Kevin.Switzer at Stamats.com 9/23/2004 3:43:48 PM >>>
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??
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list