Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes WHAT KIND OF OS???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "WHAT KIND OF OS????" Watch "WHAT KIND OF OS????" New topic
Author

WHAT KIND OF OS????

mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
Hi
Can I know any how the type of OS. ie teh os is English or Japanese like that...
please help
Thanks :O
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Finding the language suported in the browser is different to finding the Operatin System. The browser language support is sent as part of the HTTP request header from the browser, the OS is available via Javascript on the client.
Dave
mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
Hi david ya i ment the language not the OS so can I know what is the language support of the browser ----through java script
Thanx
A1ien51 CNEUFOs
Greenhorn

Joined: Nov 05, 2001
Posts: 16
try these lines and see if they work
if(navigator.appName="Netscape"){
lan=navigator.language;}
else{
lan=navigator.browserLanguage;}
 
 
subject: WHAT KIND OF OS????
 
Similar Threads
Survey- What platform do you use to program in Java?
Looking for free good software to burn Media DVD on my DELL laptop
environment variables
Next kitty will be ...
Capturing/Consuming Alt+Tab combination under JFrame