★ wanayoo — archive 1999 https://developer.mozilla.org/bm/docs/Web/JavaScript/Reference/Errors/Property_access_deniedNouvelle recherche | Portail wanayoo

This translation is incomplete. Please help translate this article from English.

Message

Erro: Acesso negado à propriedade "x"

Tipo de Erro

Error.

Que aconteceu de errado?

There was attempt to access an object for which you have no permission. This is likely an <iframe> element loaded from a different domain for which you violated the same-origin policy.

Exemplos

<!DOCTYPE html>
<html>
  <head>
    <iframe id="myframe" src="/old?u=http%3A%2F%2Fwww1.w3c-test.org%2Fcommon%2Fblank.html&y=1999"></iframe>
    <script>
      onload = function() {
        console.log(frames[0].document);
        // Erro: Acesso negado à propriedade "document"
      }
    </script>
  </head>
  <body></body>
</html>

Ver também

Document Tags and Contributors

Contributors to this page: cjlopesmartins
Last updated by: cjlopesmartins,