Zugriff auf übergeordnete Fenstervariable von einem domänenübergreifenden iframe
Innerhalbhttp: //mydomain1.com/index.htm
<html>
<body>
<script type="text/javascript">
var a = 1;
</script>
<iframe src="http://domain2.com/test2.html"></iframe>
</body>
</html>
Innerhalbhttp: //domain2.com/test2.htm
<script type="text/javascript">
alert(parent.a); // forbidden
</script>
Irgendwelche Workarounds?