How can the os of the client machine be detected?
Answer / Salman
In JavaScript, you can't directly detect the OS of the client machine. However, you can make an educated guess based on user-agent strings sent by the browser. Use navigator.userAgent property to get the user agent string and then use regex or a library like useragentjs to parse the OS.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of 'bind' method in JavaScript?
Can you assign a anonymous function to a variable?
Please write the Code of simple javascript calculator withot eval() function
What are the valid scopes of a variable in JavaScript?
How is javascript different from java?
How are DOM utilized in JavaScript?
what is the purpose of using jsp?
What are escape characters in javascript?
Why javascript is fast?
How to set a html document's background color?
how to run the servlet in tomcat
What is data types in javascript?