标签:style blog http color io 使用 java ar for
首先我们了解一下:window.location.href、location.href、self.location.href、parent.location.href、top.location.href他们的区别与联系,简单的说:几种location.href的区别 js实现网页被iframe框架功能现在回头看看,js实现网页防止被iframe框架功能就很简单了。假设frame.html文件中框架了content.html文件,那么思路是这样的:在content.html中加入js检测自己本身top.location.href地址,是否为top.location.href地址。如果是则没被嵌套,如果否的话即被嵌套了,这是我们可以提示一下
</script>
参考资料:http://www.jb51.net/article/40956.htm
标签:style blog http color io 使用 java ar for
原文地址:http://www.cnblogs.com/brucetie/p/3951523.html