R
R
Ruslan Makarov2015-12-06 00:04:06
PHP
Ruslan Makarov, 2015-12-06 00:04:06

How to determine the operating system and show the desired url?

Good!
The site has 6 pages, each for a specific OS:
Windows, Mac, Linux and Android, iOS, Win Phone
Please tell me how to determine the user's OS and, depending on it, show the desired page.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Pavlov, 2015-12-06
@dmitry_pavlov

Look in the properties of the window.navigator object
People have already written even any code.

S
sunrails, 2015-12-06
@sunrails

https://developer.mozilla.org/en-US/docs/Web/API/W...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question