62,047
社区成员
发帖
与我相关
我的任务
分享
<!--子页面-->
<script>
window.onunload = function() {
alert(window.opener.location.href);
window.opener.location.href = window.opener.location.href;
}
</script>
<!--父页面-->
<a href="" onclick="window.open('default11.aspx');return false;">打开子窗口</a>
<script type="text/javascript">
var popUpWin = 0;
function PopUpWindow(URLStr, left, top, width, height, newWin, scrollbars) {
if (typeof (newWin) == "undefined")
newWin = false;
if (typeof (left) == "undefined")
left = 100;
if (typeof (top) == "undefined")
top = 0;
if (typeof (width) == "undefined")
width = 800;
if (typeof (height) == "undefined")
height = 760;
if (newWin) {
open(URLStr, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
return;
}
if (typeof (scrollbars) == "undefined") {
scrollbars = 0;
}
if (popUpWin) {
if (!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
popUpWin.focus();
}
</script>
<a href="javascript:void(0);" onclick="javascript:PopUpWindow('UpLoadUserPhoto.aspx',100,100,600,450);">