if(window.top !== window.self){ window.top.location = window.location;}
这句话的意识是说:如果当前窗体不是顶级窗体,就把自己变成最顶层。从而防止别人iframe使用
JS防止页面被其他网站iframe使用方法
原文:http://www.cnblogs.com/wms01/p/6854229.html