求指導,為什么運行后是打不開網頁
?function openWindow() ? ?{ ? ? ? ?var myopen; ? ? ? ?var mysure=confirm("are you sure"); ? ? ? ?myopen=prompt("open the window","http://www.xianlaiwan.cn/"); ? ? ? ?if(mysure) ? ? ? ?{ ? ? ? ? ? ?window.open(myopen,'_blank','width=400,height=500'); ? ? ? ?} ? ?}
2016-09-21
把myopen=prompt("open the window","http://www.xianlaiwan.cn/");?中的網址改http://www.xianlaiwan.cn/
2016-09-21
? <script type="text/javascript"> ?
? ? function openWindow(){
? ? ? ? var k_open;
? ? ? ? var temp=confirm("是否新打開窗口?")
? ? ? ? if(temp)
? ? ? ? ?{
? ? ? ? ? k_open = prompt("請輸入你要打開的網址:","http://www.xianlaiwan.cn/");
? ? ? ? ? window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500,');
? ? ? ? ?}
? ? ? ? }
? </script>?
2016-09-21
<script type="text/javascript"> ?
??? function openWindow(){
??? ?
??? // 新窗口打開時彈出確認框,是否打開
???? var judge = confirm("是否打開?");
??? // 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
??? if(judge){
??????? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
??????? window.open("http://www.xianlaiwan.cn/","_blank","height=500px,width=400px");
??? }
??? }
? </script>
2016-09-21
http://www.xianlaiwan.cn/冒號改成英文的