<!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=confrim("是否打开");
if (open==true){
var ulr=prompt("请输入网址","http://www.imooc.com/");
if (ulr==true){
window.open(ulr,"_blank",'windth=400px,hight=500px,menuber=no,toolber=no');
}
else{
alert("再见");
} }
else{
alert("再见");
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>
qq_青枣工作室_0
A空城
相关分类