Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 12 sie 2011 · I am looking for a way to detect the OS for a downloads page using jQuery or Javascript to recommend specific files for Mac vs Windows. I was hoping to do it without adding another plugin to my page.

  2. 27 maj 2017 · We could use navigator.userAgent to detect os. // mac os function isMacintosh() { return navigator.userAgent.indexOf("Mac") > -1; } // windows function isWindows() { return navigator.userAgent.indexOf("Win") > -1; }

  3. www.npmjs.com › package › ua-parser-jsua-parser-js - npm

    JavaScript library to detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data with relatively small footprint (~17KB minified, ~6KB gzipped) that can be used either in browser (client-side) or node.js (server-side).

  4. 7 sie 2022 · To alleviate the issue, Object.prototype.hasOwnProperty() can be used in addition to the previous method to check for the property actually being present on the object. Moreover, it can also be used for the opposite, so you can also detect non-existent properties and handle them accordingly.

  5. 11 lip 2022 · In case you are in a rush, here are the three standard methods that can help you check if a variable is undefined in JavaScript: if(myStr === undefined){} if(typeof myArr[7] === "undefined"){} if(user.hobby === void 0){} Let’s now explain each of these methods in more detail.

  6. 12 lip 2023 · This article walks you through six demo pages to demonstrate resolving JavaScript errors that are reported in the Console. Fix JavaScript errors. A major role of the Console is to display any JavaScript errors that are found in the webpage. Demo page: JavaScript error reported in the Console tool

  7. 8 paź 2024 · To detect the operating system on the client machine, one can simply use navigator.appVersion property. The Navigator appVersion property is a read-only property and it returns a string that represents the version information of the browser. Syntax: navigator.appVersion.

  1. Ludzie szukają również