[問題] 在一頁面中指定另一頁面refresh
HI , 我現在用一個主頁面,裡面放了兩個子頁面,像這樣
<frameset rows='50,*' border='0' frameborder='0' framespacing='0'>
<frame src='blank.html' name='blank' frameborder='no' border='0' scrolling='no' target='blank'>
<frame src='welcome2.html' name='welcome2' frameborder='no' border='0' scrolling='yes' target='welcome2'>
然後我的blank頁面使用<meta http-equiv="refresh" content="10">讓它自己一直重新
整理
blank頁面中放了一個像這樣的javascript語法
if(updateWelcome2 == '1') parent.welcome2.location.reload();
我的用意是要讓blank在某些條件下可以去指定另一個子頁面重新整理
但我發現用Firefox和google瀏覽器的時候
parent.welcome2.location.reload(); 在我的blank自己重新整理一次後 ,這個語法就
不會生效了
看起來似乎是重新整理後就抓不到 parent.welcome2 ?
有人知道我的問題出在哪裡嗎 ,不知道我的敘述能不能讓大家看懂
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.220.139.2
※ 編輯: frog3 來自: 61.220.139.2 (09/23 09:51)
推
09/23 11:47, , 1F
09/23 11:47, 1F