<!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 box=confirm("quedingdakai")
if(box==true)
{
var box=prompt("qingshuru","http://www.imooc.com")
if(box!=mull)
{
window.open('http://www.imooc.com,-blank,width=400,height=500,meunbar=no,scrollbar=no,tollbar=no')
}
}
else{
alert("111111")
}
else{
alert("22222")
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>
串猪神
相关分类