[CODE=javascript]var elm = getElmById("myI D");
function getElmById(aID) {
var element = null;
if (isMozilla || isIE5)
element = document.getEle mentById(aID)
else if (isNetscape4)
element = document.layers[aID]
else if (isIE4)
element = document.all[aID];
return element;
}
[/CODE]
here how do we capture the browser, wheather its mozilla or IE
isMozilla or isIE5 are variables...??
can you help me in how to check for a particular browser.
function getElmById(aID) {
var element = null;
if (isMozilla || isIE5)
element = document.getEle mentById(aID)
else if (isNetscape4)
element = document.layers[aID]
else if (isIE4)
element = document.all[aID];
return element;
}
[/CODE]
here how do we capture the browser, wheather its mozilla or IE
isMozilla or isIE5 are variables...??
can you help me in how to check for a particular browser.
Comment