此代码将在弹出窗口中打开 go.com:
<a href="javascript:void(0)" onClick="javascript:window.open('http://go.com','','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=300px,height=300px')">open</a>
我想alert('closed!')
在主页中使用,当弹出窗口关闭并且我无法编辑弹出页面以供使用onunload="alert('closed!')"
时,因为弹出页面是外部页面,我无法更改代码
var mywindow = window.open('http://go.com') ...
谢谢。