PDA

View Full Version : detecing windows with javascript


aneuryzma
07-12-2009, 08:24 AM
How can I detect if Safari is running on Windows using javascript ?

and google chrome browser ?

thanks

GrillMonkey
07-16-2009, 03:56 AM
Using JavaScript.

To get the browser I think it window.navigator.appName

and for the OS you'd use window.navigator.userAgent