[thelist] Javascript Versioning
Peter-Paul Koch
gassinaumasis at hotmail.com
Sun Dec 17 10:34:15 CST 2000
> > Generally I never use JavaScript versions because I find them too
> > unreliable. What use to detect JavaScript 1.2 if NN4 and IE4 are as
> > different as night and day?
>
>You could use it for some kind of "browser-detection", since, if you
>send out "javascript 1.3" the elder browsers wont get it... not
>declaring a version gets the browser to execute scripts no matter wether
>they actually -can- execute the code or not.
>
>And there's syntax-differences that _can_ matter (though I can't
>remember what they are)
O, I understand what you can do with the versions, but I find support
detection (does this browser support document.all?) much, much more
reliable. If you use it, JS versions aren't necessary any more.
My rule: Never use a browser detect when you can use support detection.
ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
More information about the thelist
mailing list