请教,错在哪儿?为什么打不开慕课网首页,而是打开了"http://www.imooc.com/error/noexists"该页面无法显示。
2 回答
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function openWindow(){
var _open = confirm("哥们儿你真的要打开?")// 新窗口打开时弹出确认框,是否打开
if (_open == true)
{
var _page=prompt("您即将访问以下网站。","http://www.imooc.com/");
window.open('_page','_blank','width = 400,height = 500, menubar = no,toolbar = no');
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>为什么这样还是有错呢?
举报
0/150
提交
取消