This is a Window.navigation example for Web Browsers written in JavaScript and Html.
KnowYourOS can be used to detect browser operating system using JavaScript? It uses Window.navigator, a read-only property which returns a reference to the Navigator object, which can be queried for information about the application running the script.