Skip to content

Instantly share code, notes, and snippets.

@navilan
Created January 27, 2009 07:04
Show Gist options
  • Save navilan/53220 to your computer and use it in GitHub Desktop.
Save navilan/53220 to your computer and use it in GitHub Desktop.
Includes for ie6.itsobsolete.com
if((navigator.userAgent.toLowerCase().indexOf('msie 6') != -1) &&
(navigator.userAgent.toLowerCase().indexOf('msie 7') == -1)){
if( !document.referrer ||
(document.referrer.indexOf(document.location.hostname) === -1 &&
document.referrer.indexOf("itsobsolete") === -1)){
document.location.href =
"http://ie6.itsobsolete.com?title=Ringce&url=" +
escape(document.location.href);
}
}
...
<head>
...
<!--[if IE 6]>
<script src="path/to/js/ie6.itsobsolete.js" type="text/javascript" charset="utf-8">
</script>
<![endif]-->
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment