window.location.reload()刷新當前頁面. parent.location.reload()刷新父親對象(用於框架) opener.location.reload()刷新父窗口對象(用於單開窗口) top.location.reload()刷新最頂端對象(用於多開窗口)瀏覽器
top和parent是瀏覽器的內置對象,top表示最頂層容器,parent表示父容器,這樣一來就是實現了iframe控制父頁面或者頂層頁面的彈窗效果了。框架