- Download ienotwelcome.js
-
Include the Javascript file at the end of your page's <body>:
...
<script type='text/javascript' src='ienotwelcome.js'></script>
</body>
-
Customize the notification's message and appearance to your liking:
function getARealBrowser() {
...
var backgroundColor = "#FF7200";
var border = "none";
var message = "Page broken? <a href='http://getfirefox.com'>Get Firefox</a>";
...
}
-
Set which versions of IE should see the notification:
function browserSucks() {
var allVersionsSuck = false;
var minimumIEVersion = 8;
...
}
- Test it with the Firefox User Agent Switcher or with the IE Collection.
- Let me know where you're using it and what you think.