Just a very short note:
Firefox doesn't support innerText JavaScript property.
You'll need to use textContent property instead.
Example:
var tagBrowser = document.getElementById('BrowserName');
var hasInnerText = tagBrowser.innerText != undefined? true: false;
if(!hasInnerText){
tagBrowser.textContent = 'Firefox';
}else{
tagBrowser.innerText = 'IE';
}
|