SimonTheSponge
Programmer
Could somebody enlighten me to the differences in these functions
My understanding
document.all[id] = IE4+
document.layers[id] = NS5+
document.getElementById [id] = IE5+ and NS6+
if I want to create a crossbrowser script that refers an elememtn in a DIV or Layer Tag is it safer to use the first 2 and ingnore getElementById as I have had problems with this in older browsers
Thanks
My understanding
document.all[id] = IE4+
document.layers[id] = NS5+
document.getElementById [id] = IE5+ and NS6+
if I want to create a crossbrowser script that refers an elememtn in a DIV or Layer Tag is it safer to use the first 2 and ingnore getElementById as I have had problems with this in older browsers
Thanks