私は2つのページを持っています、異なるドメインを持っています。クロスドメインのオープナーのURLを知る方法
私は子供ページからオープナーページのURLを知りたいです。しかし、私はオープナーを介してそれを行うことができません。
例:
Page1.html:
<html>
<head></head>
<body>
<script>
var handle = window.open("somedomain/Page2.html");
</script>
</body>
</html>
Page2.html
<html>
<head></head>
<body>
<script>
alert(opener.location) //this is not working.
</script>
</body>
</html>
を知ることができません変数。 – Quentin