[thelist] Validating JavaScript
Peter-Paul Koch
gassinaumasis at hotmail.com
Tue Mar 13 07:30:41 CST 2001
>there. One simple way around at least certain aspects of this is to place
>down-level content between the opening and closing <script> tags for the
>first-generation browsers, e.g.:
>
><head>
><script type="text/javascript" src="scriptname.js">
> <!--
> function fnMouseOver() {}
> function fnMouseOut() {}
> function fnMouseClick() {}
> // -->
></script>
Nice trick! I tested it and found out that it doesn't work correctly in
Hotjava and Opera 3, who support includes but give precedence to the scripts
in the pages (then again, who cares?)
>P.S. - Although this is a workaround that I "discovered" for myself, I
>think
>that jeff may have suggested it in days long past. If so, jeff, feel free
>to
>correct or improve upon anything I've written.
I put it on my JavaScript site
(http://www.xs4all.nl/~ppk/js/index.html?placejs.html). Since you discovered
it, you get eternal and undying fame in the form of a link (unless Jeff
wants to claim precedence). Please tell me where the link should lead.
ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
More information about the thelist
mailing list