Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
error は HTMLGeolocationElement インターフェイスの読み取り専用プロパティで、位置データの取得に失敗した場合に、エラー情報を表す GeolocationPositionError オブジェクトを返します。
位置データの取得が成功した場合、そのデータは HTMLGeolocationElement.position プロパティで利用可能です。
GeolocationPositionError です。位置データの取得に成功した場合は null です。
error を含む実際の例については、組み込み地図の例の手順を追っての説明をご覧ください。
| The HTML Geolocation Element # dom-htmlgeolocationelement-error |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年2月11日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.