<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="ContentType : content="text/html"charset="uft-8">
<script type="text/javascript">
function wata(){
var checkYn;
checkYn=confirm("你想跳转新地址吗");
if(checkYn==true)
{
window.open("http//:www.baidu.com" "_blank" left=50)
}
else{
document.write("好吧");
}
}
</script>
</head>
<body>
<input type="button" name="button" onClick="wata()"value="请点击" />
</body>
</html>
你的Window.open()函数本来就没有定义啊, 函数要用function定义