double-helix
07-14-2002, 04:59 AM
When i use JavaScripts in my HTML code, i reference many thing sso that i may creat innotive and cool scripts. However, one things concerns me.
When i reference a'DHTML Element' eg <span><div> etc, i do this:
document.all["span / div id selector"].property
However, apparently, you can also do this
span/ div id selector.property
I know this is correct, but, as there are compatibilit issues, is one more compatible than the other?
or should i make a simple browser script at the start to justify which one to use?
Any help appreciated :)
When i reference a'DHTML Element' eg <span><div> etc, i do this:
document.all["span / div id selector"].property
However, apparently, you can also do this
span/ div id selector.property
I know this is correct, but, as there are compatibilit issues, is one more compatible than the other?
or should i make a simple browser script at the start to justify which one to use?
Any help appreciated :)