@Khalid_AliSep 25.2003 — #In general terms yes it will work,however,
document.all is too general statement,it will be true for all IE browsers,where as in IE6+ browsers there are differences of how toretrieve some values in JavaScript.
It can be good for Opera as well while you'd optimise your code only for IE<5.5.
document.layers is good for NS browsers <5 versions vers6+ can not be detected by that,for that you will need to get document.getElementById or/ and get the actual browsers version string and compare it