Dinesh katariya’s Post

View profile for Dinesh katariya, graphic

Frontend Web Developer | Expertise in Javascript, Reactjs & Nextjs | Exploring Artificial intelligence

Recently, I needed to determine both the operating system and device type that users are using to access our website. After reading a few blogs and using a ChatGPT :), I learned that window.navigator provides a way to identify the user's OS and device. for an example here is a simple js snippet I've copied from chatgpt it'll detect which OS user is using.

  • No alternative text description for this image

To view or add a comment, sign in

Explore topics