Browser Entry

Any problem with javascript can be discussed here.
Post Reply
coco
Posts: 50
Joined: Thu Dec 23, 2004 12:01 pm
Contact:

Browser Entry

Post by coco »

If you maintain a different page for Internet Explorer and another for Netscape browsers, you should use this script. Quite simply, it sends the right browser to the right browser optimised page.

<!-- ONE STEP TO INSTALL BROWSER-SPECIFIC ENTRY:

1. Paste the coding into the BODY of your HTML **** -->



<body>

<script language="JavaScript" type='text/javascript'>
<!-- Begin
var name = navigator.appName
if (name == "Microsoft Internet Explorer")
url=("http://www.8sky.info/ie.html");
else
url=("http://www.8sky.info/netscape.html")
window.location=url

// End -->
</script>

</body>


planetpixel
Posts: 253
Joined: Thu Apr 14, 2005 6:37 am

Post by planetpixel »

wow! thats dead handy! amazing..thanks so much for sharing, ull be using this alot
Image

Image
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

its nice, simple and usefull jscripts. Thanks
Image
kaos_frack
Posts: 504
Joined: Sat May 07, 2005 8:03 am
Contact:

Post by kaos_frack »

that's not the best way because it can be changed
have you ever seen something like
"identify as opera/ie/netscape" in preferences
Post Reply