[thelist] How do I know if a piece of JS is DOM or browser specific?
Peter-Paul Koch
gassinaumasis at hotmail.com
Wed Oct 16 05:23:02 CDT 2002
> > In general you should use the Level 0 DOM (the one that Netscape
> > standardized before W3C existed) whenever possible. This is the >best
>way to program JavaScripts.
>
>Ok, I can understand the rationale there. So if I used
>
> document.forms['form_name']
>
>you would expect it to not only work in DOM compliant browsers but also
>"moldy oldies"?
It is guaranteed to work in all JavaScript browsers because it is part of
the de facto JavaScript standard since Netscape 2. Every browser (including
Explorer) that started supporting JavaScript had to conform to the standards
set by Netscape 2 and 3.
ppk
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
More information about the thelist
mailing list