/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function returnObjById( id ) { if (document.getElementById) var returnVar = document.getElementById(id); else if (document.all) var returnVar = document.all[id]; else if (document.layers) var returnVar = document.layers[id]; return returnVar; }
Comments
