防止网页被别人框架的方法

为了网页不被别人框架,可以在head部分加入如下代码:

<script>
if (window.top!=self){
window.top.location=self.location
}
</script>

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

Captcha Code