Jump to content

Showing a warning message to users using IE


Recommended Posts

How can I have my shop show a pop up message, etc to users who are using Internet Explorer since my site's theme has compatibility problems with it?

IMO, fixing the compatibility problem would be better, but if you must show an alert, download this module. Disclosure: module is built by me. Install, go to its configuration, select "Header of pages" from "Block position" dropdown and add the following into "Block body" field (changing the message appropriately), save:

 

<script type="text/javascript">
$(function () {
	if(window.location == baseDir && $.browser.msie) {
		alert('Insert your message here');
	}
});
</script>

 

Now when you visit home page in IE, and home page only, an alert will show up.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...