浏览器判断
1 <html> 2 <script type="text/javascript"> 3 var browser=navigator.appName 4 var b_version=navigator.appVersion 5 var version=b_version.split(";"); 6 try{ 7 var trim_Version=version[1].replace(/[ ]/g,""); 8 if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0") 9 { 10 window.location="UpgradeNavigation.aspx"; 11 } 12 else 13 { 14 window.location="UIL/Main/Default.aspx"; 15 } 16 } 17 catch(err){ 18 window.location="UIL/Main/Default.aspx"; 19 } 20 </script> 21 </html>