打开的页面中:
<script>
function dounload(){
var s = opener.location.href;
var p = s.indexOf("?");
if(p!=-1) s = s.substr(0,p);
alert(s);
opener.location.href = s + "?pra=2";
}
window.attachEvent("onunload",dounload);
</script>
<body>
<input type="button" value="Close" onclick="window.close();">
</body>
<script>
function dounload(){
var s = opener.location.href;
var p = s.indexOf("?");
if(p!=-1) s = s.substr(0,p);
alert(s);
opener.location.href = s + "?pra=2";
}
window.attachEvent("onunload",dounload);
</script>
<body>
<input type="button" value="Close" onclick="window.close();">
</body>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货