mercredi 28 janvier 2015

How does the same-origin policy apply between browser tabs?



Let's assume that we have 2 open tabs in a browser containing page A (A.html, A.js) into the first tab and page B (B.html, B.js) into the second tab and that page A and B have the same origin (scheme, domain, port).



  1. Can A.js call a function from B.js?

  2. Can A.js modify the DOM of page B.html?





Aucun commentaire:

Enregistrer un commentaire