<!DOCTYPE html>
<html>
?<head>
? <title> new document </title>?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>??
? <script type="text/javascript">?
?? function openWibdow(){
?????? var my = confirm("是否打開");
?????? if(my == true){
?????????? var my1 = prompt("輸入對話框","http://www/imooc.com/",'_blank',"width=400,height=500",'menubar=no,toolbar=no');
?????????? window.open(my1);
?????? }
?????? }
???
? </script>
?</head>
?<body>
????? <input type="button" value="新窗口打開網站" onclick="openWindow()" />
?</body>
</html>
誰可以幫我看看哪里出現問題了呢,萬分感謝
2014-10-27
事件中調用的函數名稱,和在script標簽中寫的函數名稱不一樣,還有請檢查所有符號是否是英文符號。