Back to JS main page

BY:Mike...Homepage
DATE:1997-03-12



COMMENTS: You will see all 3 sentences if using 4.0 of netscape,
2 if using 3.0 and 1 if using 2.0.

This is really not a JavaScript Code, but merely a specail line to place in your script(s) so that they will not report errors when used in different versions of Navigator.

Ok this is how it works. If your script is compatible with Netscape 2.xx then place this script code in your script.

<script language="JavaScript">

If your script is only compatible with Netscape Navigator 3.0 then place this code in your script.

<script language="JavaScript1.1">

If your script is only compatible with Netscape Navigator 4.0 then place this code in your script.

<script language="JavaScript1.2">

By placing the versions of javascript in your script, browsers that do not support the script with ignore it just like a browser would that doesn't support JavaScript.

If you still don;t understand read this.

Netscape 2.0 = JS 1.0

Netscape 3.0 = JS 1.1

Netscape 4.0 = JS 1.2

If your script is written in JS 1.1, netscape 3.0 and 4.0 will read it.

If it is written in JS 1.0, then all browsers will read it.

If your script is written in JS 1.2, then only Netscape 4.0 will support that script. All other browsers will ignore it.

Thanks to Netscape for telling me this.
If you want this script just choose "Save Frame As..." (in Netscape) when you have the focus on the frame.

URL: http://www.oocities.org/SiliconValley/7116/jv_ver.html