怎么防止我的网站被别人iframe调用框架
1个回答
展开全部
调用JS吧。
<script language="javascript">
if( top.location != self.location) top.location.href=self.location.href;
</script>
<script type="text/javascript">
if(top.location != self.location){
top.location = self.location;
}
</script>
<script language="javascript">
if (top.location != self.location) {top.location=self.location;}
</script>
三种写法,总有一款适合你
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询