在a.htm<input type="hidden" id="hid">
document.getElementById("hid").value="......"
在b
var aaa = opener.document.getElementById("hid").value
document.getElementById("hid").value="......"
在b
var aaa = opener.document.getElementById("hid").value
调试欢乐多
window.open('b.htm');
var a=10000
</script>
b.htm<script>
alert(opener.a);
</script>