rlemon
04-05-2005, 04:15 PM
function getElement(aID){
var rv = (document.getElementById) ? document.getElementById(aID) :
document.all[aID];
return rv;
}
This script should return the element in both IE and NS without problems.
Use Example:
var myElement = getElement('someE');
Notice how I can now make one single call for both IE and NS?
ohh well, hope this helps!
var rv = (document.getElementById) ? document.getElementById(aID) :
document.all[aID];
return rv;
}
This script should return the element in both IE and NS without problems.
Use Example:
var myElement = getElement('someE');
Notice how I can now make one single call for both IE and NS?
ohh well, hope this helps!