求助 !最后打开的窗口一直打不开网页
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<script type="text/javascript">
var tip = confirm("在?打开网页?");
if (tip == true) {
var address = prompt("Please input web address", "http://www.imooc.com/");
function openWindow() {
window.open('address', '_blank', 'width=400px', 'height=500px');
}
}
else { }
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>