<script language="javascript"> 
    if (top.location != location) 
        top.location.href = location.href;
</script>

可以用在..
1. 登入頁面:如果登入頁面被包在frame裡面,當timeout後,frame其他選單依然可被使用/看到,當按下任一網址,被導向登入頁面時,登入頁面就會重新設定top frame的url。
2. 補... 


arrow
arrow
    全站熱搜

    伊 發表在 痞客邦 留言(0) 人氣()