Click to See Complete Forum and Search --> : browser check question


Codec
04-03-2003, 10:15 AM
Yo guys,

i have a question.


I want to make a check on my website with which browser they are visiting my site....

why i need this because they have to auto forward them to the mobile site if they are using a mobile phone and if they are using normal browser they will be forwarded to the normal site.

i make a part of the site for mobile phones.

how do you call this and where can i find a script like this?


thnx

greetz


Codec

havik
04-03-2003, 10:29 AM
var name = navigator.appName
if (name == "Insert name of mobile phone")
url=("phone.html");
else
url=("browser.html")
document.write('<A HREF="' + url + '">Enter</A>');

Example:
name == "Microsoft Internet Explorer"; to check for IE
name == "Netscape"; to check for NS

Havik

Codec
04-03-2003, 10:33 AM
Great!!!

needed that, many thnx