小编wtm*_*wtm的帖子

Javascript关闭您刚刚打开的标签

我想在新窗口中打开一个URL,在x秒之后或页面完成加载后我想再次关闭它.

我现在正在使用:

window.open('http://otherurl.com', 'newwindow', 'width=300, height=250'); return false;
Run Code Online (Sandbox Code Playgroud)

'otherurl'不是域名,因此我无法控制该URL.

我怎样才能做到这一点?

javascript url

0
推荐指数
1
解决办法
44
查看次数

标签 统计

javascript ×1

url ×1