Posts Tagged ‘Page redirection’

Page redirection depends upon visitors browsers

How to redirect visitors to different pages depending upon their browser using  java script. Is it possible? Yes, it’s possible. Here is the code, <script type=”text/javascript”> <!– var bname = navigator.appName; if (bname.search(/netscape/i) == 0) { window.location=”netscape.html”; } else if (bname.search(/microsoft/i) == 0) { window.location=”internetexplorer.html”; } else { window.location=”other_browsers.html”; } //–> </script> After assigning the [...]