Return to Snippet

Revision: 6830
at June 17, 2008 18:55 by ezerick


Initial Code
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; 
}

Initial URL

                                

Initial Description

                                

Initial Title
Return Object By ID

Initial Tags
javascript, object

Initial Language
JavaScript