請問我這個代碼哪里錯了?
請問我哪里錯了?
<!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>
2015-12-15
第10行 結尾處多了個j?
2015-12-16
多了個j少個}
2015-12-15
var b = prompt("Please write the adress you want to go to!","
多了個字母j