|
|
|
|
Fun: Programs: Utilities |
|
|
|
|
|
Startside -> Fun -> Programs -> Utilities -> Ban IE from your Homepage | |
|
|
Utilities: Ban IE from your HomepageIf someone wants to open this page with the IE, he will be redirected to another page.The Source-Code:
<html>
<head>
<title>NO TITLE</title>
<!--- function definitions ---->
<script>
<!--
var is_msie = false
function CheckBrowser() /* sets is_msie to 1 if MSIE is used */
{
var browser
browser = navigator.appName.toLowerCase()
is_msie = (browser.indexOf("microsoft") > -1)
};
function WriteMsie (string) /* writes string if MSIE */
{
if (is_msie) document.write (string)
}
function WriteNonMsie (string) /* writes string if not MSIE */
{
if (!is_msie) document.write (string)
}
function LoadMsieTarget(target)
{
WriteMsie ("<meta http-equiv='Refresh' content='0; url=" + target + "'>")
};
//-->
</script>
<script>
<!--
CheckBrowser()
LoadMsieTarget("http://antims.dgerth.com/") /* Target for MS-Browser */
//-->
</script>
<script>
<!--
WriteMsie("<NOSCRIPT>")
//-->
</script>
</HEAD>
<BODY>
You do not use the IExploiter from M$
This is a useless text.
</BODY>
<script>
<!--
WriteMsie("</NOSCRIPT>")
//-->
</script>
</html>
|
|||
| © 1997 - 2012 Dieter Gerth | ||||