More often than not you want to create a child window and want to capture its events. This example simply captures its close event. var childWindow = window.open("new ...
location.href&&window.open href 属性是一个可读可写的字符串,可设置或返回当前显示的文档的完整 url。语法就是 location.href。 阅读详情 open() 方法用于打开一个新的浏览器窗口或查找一个已命名的窗口。