慕少8622884
2015-12-15 09:04
请问我哪里错了?
<!DOCTYPE HTML>
<html>
<head>
<title>new document</title>
<meta http-equiv="Content-Type",content="text/html; charset=utf-8"/>
<script type="text/javascript">
function lai(){
var a = confirm("Do you want to open the window?");
if (a==true)
{ var b = prompt("Please write the adress you want to go to!","http://www.baidu.com")j;
if (b!=null){
window.open('http://www.baidu.com','_blank','width=400,height=500,menubar=no,toolbar=no');
}
else{
alert("Thanks for your using");
}
}
else {
alert("It is so pity to give up using me!");
}
}
</script>
</head>
<body>
<input type = "button" value = "Open new window" onclick = "lai()" />
</body>
</html>
第10行 结尾处多了个j
多了个j少个}
var b = prompt("Please write the adress you want to go to!","http://www.baidu.com")j;
多了个字母j
JavaScript入门篇
739817 学习 · 9566 问题
相似问题