如何阻止iframe里引用的网页自动跳转

今天作了个网页,要在网页里设置一个iframe,而后套用其余的网站的时候,出现了莫名其妙的问题,个人网页竟然会强制自动跳转到这个网页上。浏览器 通过网上的资料搜索,发现问题的缘由是因为嵌入的页面中有如下代码:ruby if (top.location != self.location) {top.location=self.location;} if (top.location != self.l
相关文章
相关标签/搜索