A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ja/docs/Web/JavaScript/Reference/Errors/Property_access_denied below:

Error: Permission denied to access property "x" - JavaScript

Error: Permission denied to access property "x"

JavaScript の例外 "Permission denied to access property" は、権限がない状態でオブジェクトへのアクセスの試行があった場合に発生します。

エラーメッセージ
Error: Permission denied to access property "x"
エラーの種類 エラーの原因

権限がない状態でオブジェクトへのアクセスの試行がありました。これは異なるドメインから読み込んだ <iframe> 要素が同一オリジンポリシーに違反する場合などです。

例 文書にアクセスする権限がない
<!doctype html>
<html>
  <head>
    <iframe
      id="myframe"
      src="http://www1.w3c-test.org/common/blank.html"></iframe>
    <script>
      onload = function () {
        console.log(frames[0].document);
        // Error: Permission denied to access property "document"
      };
    </script>
  </head>
  <body></body>
</html>
関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4