<script>
if(top.location!=self.location){
alert("不是頂層窗口");
}else{
alert("是頂層窗口");
}
</script>
就是判斷 當前這個頁面是否嵌套在iframe框架中。
<script>
if(top.location!=self.location){
alert("不是頂層窗口");
}else{
alert("是頂層窗口");
}
</script>
就是判斷 當前這個頁面是否嵌套在iframe框架中。
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。