How to find Windowow devices using Javascript or jquery
Asked
Active
Viewed 67 times
-3
-
What on earth is "Windowow"? – Jul 01 '17 at 04:07
-
sorry its windows – Chris Harris Jul 01 '17 at 05:27
-
tagged php and wants to use javascript? – rkosegi Jul 02 '17 at 06:02
1 Answers
0
use 'navigator.platform' to check what platform you are using.
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorID/platform
function isWindows() {
return navigator.platform.indexOf('Win') > -1
}
// Maybe Try this on android deveices
function isAndroid() {
return navigator.platform.indexOf('android') > -1
}

monkianer
- 84
- 6
-
-
https://stackoverflow.com/questions/19877924/what-is-the-list-of-possible-values-for-navigator-platform-as-of-today here you can find a list od platform. – monkianer Jul 01 '17 at 07:33
-
-
-
-
If you have that kind of device in the hand, then you can use 'navigator.platform' to check what's string returned. If you can tell me what kind of device is not detected maybe I can try to figure it out. – monkianer Jul 02 '17 at 05:05
-
Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/148149/discussion-between-monkianer-and-chris-harris). – monkianer Jul 02 '17 at 05:10