<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function Wopen(){
var wan;
wan=prompt('你的网址','http://www.imooc.com');
window.open(wan,'_blank','width=400px,height=500px,toolbar=no,scrollbars=no');
}
function openWindow(){
var massage=confirm("是否打开网站?");
if(massage==true){
Wopen();
}
else{
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>
和和和禾
2014-10-20
举报
0/150
提交
取消