Jump to content
xisto Community
Sign in to follow this  
cherri

Javascript: Browser Detection Script Detect your visitors browser

Recommended Posts

If you want to detect your visitors browser, sebd them a message and redirect them use this script:

<script language="JavaScript"><!--var browserName=navigator.appName; if (browserName=="Netscape"){  alert("Hi Netscape user!") window.location = "netscape.html"} else {  if (browserName=="Microsoft Internet Explorer") {  alert("Hi Microsoft Internet Exlorer User!");  window.location = "MIE.html" }  else  {   alert("What are you browsing with?");   window.location = "unkown.html"   }}//--></SCRIPT>

Share this post


Link to post
Share on other sites

Browser detectionJavascript: Browser Detection Script

Kindly please make a script that can detect my browser.Example:

  • If my browser is IE 6 and below it will display ie6.Html

  • Else if my browser is IE 7 and above it will display ie7.Html

  • Else my browser is not IE then it will display a message like you are not using IE Browser.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.