1,具有相同父域名时 可以用js设置相同域名就可访问
例如: aaa.www.org.com/a.html
abc.efg.www.org.com/b.html
两个页面中都设置相同的父域 www.org.com
代码: <script> domian = “www.org.com” </script>
2.不同父域时可以用html5的postMessange
实例参考: http://biqing.github.io/MessengerJS/
缺点:IE只支持IE8及以上版本。其他支持html5的浏览器也可以
参考文章:
http://www.cnblogs.com/rainman/archive/2011/02/20/1959325.html#m5