为了账号安全,请及时绑定邮箱和手机立即绑定

setTimeout定时调用window.open打开网页打不开?

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>window.open</title>

<script type="text/javascript">

  function Wopen(){

window.open('http://www.imooc.com','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes');

  }

  setTimeout("Wopen()",1000);

  

</script>

</head>

<body>


</body>

</html>


请问这段代码中为什么不会打开imooc的网页

正在回答

1 回答

可以啊,你是不是在浏览器中设置拦截了?你看看你的浏览器设置

0 回复 有任何疑惑可以回复我~
#1

王爱摇 提问者

非常感谢!
2015-03-24 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

setTimeout定时调用window.open打开网页打不开?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号