打開之后點了確定還是只彈出來5,也不顯示prompt的內容
<script?type="text/javascript">
?function?openWindow(){
????var?mys?=?confirm("55555");
????if(confirm==true){
????????var?ll=prompt("dsdadas","");
????????if(ll?!==?null){
????????????window.open(ll,'_blank');
????????}
????????else{
????????????alert("over");
????????}
????
????}
????else{
????????alert("5")
????}
}
??</script>?
?</head>?
?<body>?
?<input?type="button"?value="新窗口打開網站"?onclick="openWindow()"?/>?
新人求助,打開之后點了確定不顯示prompt的內容
weixin_慕勒4259824
2016-05-06 14:47:14