<!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 message=prompt("是否打开窗口");
var HTTP_address="http://www.baidu.com";
if(message!==null){
window.open(HTTP_address,"New_Page","width=400,heigth=500,menubar=no,toolbar=no");
}else{
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>