I have a javascript that recognises the browser and then redirects to a page. However , I want only IE explorer to be redirected. I mean , if browser is IE then redirect to a page.
Unfortunately , it redirects Opera too! Here's the code:
- Code: Select all
<SCRIPT language="JavaScript">
<!--
var browserName=navigator.appName;
var browserVer=parseInt(navigator.appVersion);
if ((browserName=="Netscape" && browserVer>=3))
version="n3";
else
version="n2";
if (version=="n3")
;
else
window.location = "www.google.com"
//-->
</SCRIPT>
Can anybody help me?


