What are you trying to accomplish? An easy way could be to have:
if(!document.getElementByI
document.getElementById = function(id) {return document.all[id];}
} elseif(!document.getElemen
document.getElementById = function(id) {return document.layers[id];}
} else {
document.getElementById = function(id) {return null;}
}
Then you should be able to use document.getElementById in the most browsers, although you could create more artifial functions offcourse.
-r-
Main Topics
Browse All Topics





by: _Maddog_Posted on 2006-03-08 at 06:45:54ID: 16133569
Wow, so much code.
e.com/Web/ Web_Langua ges/JavaSc ript/ Q_216 10119.html
Could this be an easier way to do the same?
http://www.experts-exchang