新闻详情

如何保护自己的页面不被加入框架

2897 2009/5/15

保护自己的页面不被加入框架

<html xmlns="http://http://www.eweiw.com/1999/xhtml" >
<head>
<title>标题页</title>
<Script LANGUAGE="JavaScript">
if(self!=top){
top.location=self.location;    //判断是否是最顶层,不是则将当前页设置为最顶层
}
</script>
</head>
<body>
</body>
</html>

相关资讯

18973218026
返回顶部