2016-11-08 100 views
-1

如何阻止Internet Explorer用戶訪問我的網站?我曾嘗試一些不同的東西,但他們只是不會工作..阻止Internet Explorer用戶

例如我想這(無法正常工作......):

<meta http-equiv="refresh" content="1; 
URL=http://www.kellotorni.eu"> 
</head> 
<body> 
<script language="javascript"> 
<!-- 
if (navigator.appName == "Microsoft Internet Explorer") { 
     document.location = "http://www.google.fi"; 
} else { 
     document.location = "http://www.kellotorni.eu"; 
} 
// --> 
</script> 

我怎樣才能阻止他們?如果用戶使用IE

<!--[if IE]> 
<link rel="stylesheet" href="ie-styles.css" media="screen" type="text/css" /> 
<![endif]--> 

並顯示例如一個警告:

回答

相關問題