Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: How to detect device being used?


Message #1 by "Justin Pease" <jpease@k...> on Wed, 22 Nov 2000 17:51:57 -0700
hi,


navigator.appName and navigator.appVersion may help
but it is always adviceable to check this at server side and then write 
appropriate code.

IN ASP, you can get it from
request.servervariables("HTTP_USER_AGENT")

jigs




----- Original Message -----
  From: Justin Pease
  Newsgroups: javascript
  To: javascript
  Sent: Thursday, November 23, 2000 6:21 AM
  Subject: [javascript] How to detect device being used?


  I have been trying to figure out how to include a script in the 
beginning of
  my index.htm that will check whether a user is using a PC or a 
handheld
  device and then redirect them to the appropriate version of the site.  
Any
  ideas?  I haven't been able to find any resources on this.

  Thanks!

  JP



  Return to Index