<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function openwindow(){
var wangzhi=prompt("请输入网址,然后点击确定按钮");
var queren=confirm("你要打开"+wangzhi+"这个网址吗");
if(queren==true)
{
window.open("http://"+wangzhi+"/","_blank","width=400,height=500");
}
}
</script>
</head>
<body>
<form>
<input type="button" value="打开新窗口" onclick="openwindow()" />
</form>
</body>
</html>