MDN self-hosted library · e01.org

HTMLGeolocationElement: promptdismiss event

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
geo.addEventListener("promptdismiss", notifyUserRetrySelection);
js
function notifyUserRetrySelection() {
  statusElem.textContent =
    'Please press the "Use location" button again and allow location for this site.';
}