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.xianlaiwan.cn','_blank','width=300,height=200,menubar=no,toolbar=no, status=no,scrollbars=yes');
? }
? setTimeout("Wopen()",1000);
??
</script>
</head>
<body>
</body>
</html>
請問這段代碼中為什么不會打開imooc的網頁
2015-03-24
可以啊,你是不是在瀏覽器中設置攔截了?你看看你的瀏覽器設置