[問題] Window.open()Opera,Safari上面無法開啟

看板Web_Design作者 (.......................)時間15年前 (2009/06/11 01:58), 編輯推噓3(303)
留言6則, 5人參與, 最新討論串1/2 (看更多)
<script language="Javascript"> function retback(){ window.open("http://www.google.com.tw",'',''); location.replace("/html/index.html");} setTimeout('retback()',200); </script> window.open這指令在Opera , Safari瀏覽器上面沒有作用 ps. 沒有禁用javascript,沒有裝額外阻擋script的軟體 麻煩各位看一下有何解法???感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.136.211.122 ※ 編輯: fillmore 來自: 220.136.211.122 (06/11 01:58)

06/11 02:01, , 1F
Opera可能會擋彈出式視窗(因為這通常很煩人)
06/11 02:01, 1F

06/11 02:04, , 2F
Safari似乎也有阻擋快顯視窗的設定
06/11 02:04, 2F

06/11 02:31, , 3F
預設會擋 點一下就可以開了
06/11 02:31, 3F

06/11 02:50, , 4F
有辦法用其他方式(替代寫法) 而不被擋住嗎?
06/11 02:50, 4F

06/11 09:15, , 5F
沒有
06/11 09:15, 5F

06/11 10:45, , 6F
不建議用window.open
06/11 10:45, 6F
文章代碼(AID): #1AB_GoJR (Web_Design)
文章代碼(AID): #1AB_GoJR (Web_Design)