This site is mobile accessible. Press the "Tap Here" button to use a different font-size.



Smartphone icons created by Freepik - Flaticon

The Navigator Object

The platform property returns the browser platform (operating system):

// detects and displays the operating system the browser is running on
document.getElementById("demo").innerHTML = 
"navigator.platform is " + navigator.platform;