The script on this page performs tests to determine whether the browser is running Internet Explorer. It creates a Boolean "Expando" property on the window object "RunningIE4" and "RunningIE5" that allows for easy checking in any scripts included later in the page.

Browser compatibility

This function will work on any browser that supports JavaScript.


Use version control functionality in your code if you want to write conditional code based on the user's browser.