如何使自己的网页不会被别人盗用(避免别人讲自己的网页嵌入到frame中)
<html>
<head>
<script language='javascript'>
function checkPage()
{
if(top.location != self.location)
top.location = self.location;
}
</script>
</head>
<body>
</body>
</html>
本文介绍了一种防止网页被他人非法嵌入到frame中的方法,通过使用JavaScript检查当前页面是否处于顶级窗口,如果不是,则将顶级窗口重定向到当前页面,以此来保护网页内容不被盗用。

被折叠的 条评论
为什么被折叠?



