Search This Blog

Google Analytics

Saturday, August 04, 2007

Alternative Method to Detect IE/Firefox Browser Using JavaScript

If you intend to use ActiveXObject in JavaScript, then you can always use the below "shortcut" to detect IE or other browser types.
if ( window.ActiveXObject ) {
    // IE
}
else {
    // Firefox
}

No comments:

Post a Comment

Do provide your constructive comment. I appreciate that.

Popular Posts