then what version of javascript does the browser default to? Should I assume that all versions (1.0 thru 1.3) of javascript are included in the latest IE or Netscape browser?
Hello Ineedjava,
The answer to your question is not exactly.
If you use <script language="javascript"> you are telling to the browser that your script is written in javascript(obvsiouly).
If you add the version of javascript (ie: script language="javascript 1.1" or javascript 1.3 you are telling to the browser what version of javascript are you using.
This is useful if you are writing some code for an specific version of the language.Since old browser doesn't support a particular version of javascript,if you specify one version,old browsers will ignore your code.
javascript 1.1:
Browsers lower than NS 3 and IE 4 will ignore the code (ie: NS 2, IE 3)
javascript 1.2
Browsers lower than NS 3 and IE 4 will ignore the code (ie: NS 2, IE 3)
javascript 1.3
for NS 4.5 and up. All other browsers will ignore the code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.