为什么我打开的网站不是目标网址?我打开的网站是:https://www.imooc.com/code/https://www.imooc.com/code/
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
var openWindow=function(){
var my = confirm ("allow alert new window?")
if (my == true)
{
window.open('https://www.imooc.com/','_blank','weight=400,height=500')
}
else{
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>