Inside http://mydomain1.com/index.html
<html>
<body>
<script type="text/javascript">
var a = 1;
</script>
<iframe src="http://domain2.com/test2.html"></iframe>
</body>
</html>
Inside http://domain2.com/test2.html
<script type="text/javascript">
alert(parent.a); // forbidden
</script>
Any work arounds?