标签: javascript html
我可以这样做吗?如果是,那怎么样?我试过unonload,但只有当我点击一个网址时才有效。
答案 0 :(得分:2)
试
window.onbeforeunload = function(){ window.open('url') }