JavaScript – location.pathname Property
The location.pathname property returns the pathname of a URL.
The location.pathname property returns the pathname of a URL.
The location.protocol property returns the protocol of the current URL, including the colon (:).
The location.search property returns the querystring part of a URL, including the question mark (?).
The Math.E property returns Euler’s number, which is approximately 2.71828.
The Math.LN2 property returns the natural logarithm of 2, which is approximately 0.693.
The Math.LN10 property returns the natural logarithm of 10, which is approximately 2.3025.
The Math.LOG10E property returns the base-10 logarithm of E (Euler’s Number), which is approximately 0.434.
The Math.LOG2E property returns the base-2 logarithm of E (Euler’s Number), which is approximately 1.442.
The Math.PI property returns PI (the ratio of a circle’s area to the square of its radius, approximately 3.14).
The Math.SQRT1_2 property returns the square root of 1/2, which is approximately 0.707.
The Math.SQRT2 property returns the square root of 2, which is approximately 1.414.
The navigator.appCodeName property returns the browser code name.
The navigator.appVersion property returns the browser version.
The navigator.geolocation property returns a geolocation object that can be used to locate the user’s position.
The navigator.cookieEnabled property returns “true” if browser cookies are enabled, and will return “false” if browser cookies are disabled.
The navigator.language property returns the browser language.
The navigator.onLine property returns “true” if the browser is online, and “false” if it is offline.
The navigator.platform property returns the platform the browser is built to run on.