0
如果使用iframe来处理一些webpage.But他们有的只是重定向我父页面,如果到theirs.I发现这个代码如何防止iframe页面重定向父页面?
(!=自我顶部)top.location = self.location;
我的问题是如何防止这种情况,并在我的ifrme中使iframe页。
如果使用iframe来处理一些webpage.But他们有的只是重定向我父页面,如果到theirs.I发现这个代码如何防止iframe页面重定向父页面?
(!=自我顶部)top.location = self.location;
我的问题是如何防止这种情况,并在我的ifrme中使iframe页。
没有机制可以做你想做的事情。无论如何,这将是一场军备竞赛。如果存在这样的技术,那么使用上面提到的代码的人是不是想找到某种方法来打败它?
如果页面不想在iframe中,那么它不应该在那里。搜索该网站,这已被问了很多。 – epascarello 2012-02-13 17:08:28
你已经进入正在进行的frame-buster-buster战争,看到这个问题:http://stackoverflow.com/questions/958997/frame-buster-buster-buster-code-needed – nwellcome 2012-02-13 17:09:10
'X-Frame-Options:deny ' – Polynomial 2012-02-13 17:14:17