<geolocation></geolocation>HTMLGeolocationElement: isValid property / notebook
HTMLGeolocationElement: isValid property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const geo = document.querySelector("geolocation");
console.log(geo.isValid);
// true, provided the `<geolocation>` element is not blocked in some way