We have been using javascript for a two years of period.
We came across lot of places where we were frequently used lot of javascript methods.
so We start from here the most frequently used javascript method...
Code:function getObj(id) { if(window.document) { var obj = null; //DOM (Netscape 6, Explorer 5) if(document.getElementById) obj = window.document.getElementById(id); //IE4 DOM else if(document.all) obj = window.document.all[id]; //Remove this final else if for Netscape 4 for more info visit // this site else if(document.layers) obj = window.document.layers[id]; if(obj){ return obj; } else{ return alert('Object Not Exists or Your browser does not support this operation.'); } } }Same code will be available in here



Reply With Quote

use them well
Thanks to 

Bookmarks