防止网页被别人内嵌为iframe

 

在页面的头部加上代码。如果页面被嵌,top指的是父页面的window。window为当前页面的window对象。

 

posted on 2018-08-06 16:52  西风瘦马justin  阅读(330)  评论(0编辑  收藏  举报