0

Is there any method to get information from operating system in browser by using js?
like python:

os.path.dirname
Y.Cole
  • 81
  • 1
  • 1
  • 4
  • related topic [here](https://stackoverflow.com/questions/9514179/how-to-find-the-operating-system-version-using-javascript) – KcH Jan 27 '21 at 07:28
  • 3
    Does this answer your question? [How to find the operating system version using JavaScript?](https://stackoverflow.com/questions/9514179/how-to-find-the-operating-system-version-using-javascript) – elMeroMero Jan 27 '21 at 07:29
  • use window.navigator – Sumit Sahay Jan 27 '21 at 07:29
  • For certain specific things, yes, but in general, no. For instance, what do you expect the equivalent of `os.path.dirname` to do if run from JS in the browser? – Alex Jan 27 '21 at 07:29

2 Answers2

0

Navigator for device and os details and configuration. You could use the keys as you wish

navigator.platform

enter image description here

prasanth
  • 22,145
  • 4
  • 29
  • 53
0

Yes there is, it can be accessed through the navigator object but it can be very sophisticated to extract these informations, so consider using a library like bowser.js

MoPaMo
  • 517
  • 6
  • 24