geo.addEventListener("promptaction", notifyUserGrantPermission);HTMLGeolocationElement: promptaction event / notebook
HTMLGeolocationElement: promptaction event
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
function notifyUserGrantPermission() {
if (geo.permissionStatus === "denied" || geo.permissionStatus === "prompt") {
statusElem.textContent =
'Please press the "Use location" button again and allow location for this site.';
}
}