<!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 a=confirm("是否打开该网址?")
if(a==true){
var b=prompt("通过输入对话框,确定打开这个网址?","http://www.imooc.com/");}
if(b!=null){
window.open("http://www.imooc.com/","_blank","width=400 height=500 ");}
else{alert("拜拜`");}
else{alert("拜拜`");}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>
Suber丶林
刚毅87
qyy2499760117_叶子
相关分类