Re: [問題] location.replace(href) 指定 target 問題

看板Ajax作者 (小V)時間16年前 (2009/06/20 03:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
用parent的語法寫 (意指跳到大小視窗之外) 譬如說 小視窗的frame name 是small 要更新小視窗就 parent.small.location.replace(url) 如果是刷新小視窗的話 頁面不變 parent.small.location.reload() 如果大小視窗一起刷新的話 parent.location.reload() ※ 引述《high38 (自high)》之銘言: : <script language="javascript"> : location.replace('$url'); : </script> : 這是可以直接跳頁的,那如果這是個小視窗,我希望小視窗的動作會影響到主視窗 : 應該怎麼下 target 呢 ? : 就是在小視窗做一些動作,主視窗跟著被刷新 : 用 form 的 target=main 也可以,只是這樣小視窗就不會更新了 ? : 謝謝各位 -- 若是普通 活著幹嘛 完美哪夠 瘋掉才行 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.57.216
文章代碼(AID): #1AE-3GdI (Ajax)
文章代碼(AID): #1AE-3GdI (Ajax)