Strange iframe automatically jumps to _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:16:09
Original
1415 people have browsed it

本帖最后由 do_and_enjoy 于 2011-07-20 08:30:30 编辑

我在自己的网页插入iframe,在Chrome和其它浏览器下没有问题,可是在火狐3.6、4.0都会出现自动跳转到iframe网址的问题。
出错页面: http://www.xinongda.com/115/error.php?e=%E8%A5%BF%E5%86%9C%E5%A4%A7总是会 自动的跳转到iframe里的 sosoplus.com这个网站的搜索结果
环境:ubuntu10.04(with kernel 2.8),Firefox4.0,Chrome,Chromium
希望大家指点一下。在win还没有来得及测试

回复讨论(解决方案)

补充一下代码: 

 
                 抱歉,没有找到与”              西农大 
              “相关115网盘下载资源。 
建议您:
--------    用网页搜索试试看   网页搜索
--------    看看输入的文字是否有误
--------    去掉可能不必要的字词,如“的”、“什么”等

以下结果由搜搜+(SoSoplus.com)提供
 
        
              

Just use the red sentence and FF will automatically jump to the sosoplus.com website, but chrome and opera will not. It jumps automatically, without clicking or other operations.

in the frame.
onload="if (parent != window) {window.top.location='http://sosoplus.com/s.php?cxx3d014792025214321162110:ugpjhluozbgx26cofx3dFORID:10x26iex3dUTF-8x26newwindowx3d1x26qx3dXinongdax 26tyx3dgnx26opx3dx26filterx3d0x26hlx3dzh-CN#' document.body .offsetHeight;}"

in the frame.
onload="if (parent != window) {window.top.location='http://sosoplus.com/s.php?cxx3d014792025214321162110:ugpjhluozbgx26cofx3dFORID:10x26iex3dUTF-8x26newwindowx3d1x26qx3d西%E…… You can try it

This cannot be removed.
is in the loaded inline frame.
The strange thing is that there is no such thing in chrome's body-onload.

It still doesn't work. Make a jump~ I wonder if you have encountered such a situation before when creating web pages?

Quoting the reply from konghulu on the 2nd floor:


onload="if (parent != window). ) {window.top.location='http://sosoplus.com/s.php?cxx3d014792025214321162110:ugpjhluozbgx26cofx3dFORID:10x26iex3dUTF-8x26newwindow...

Does anyone know what this is!

This is also a way. However, other people’s web pages won’t let you add code casually. People don’t go there just to prevent being iframed. www.sosoplus.com uses Google's search. It should be said that the code in Google's custom search has been transferred. But it won't jump in chrome. This is not bad.

in the frame.
onload="if (parent != window) {window.top.location='http://sosoplus.com/s.php?cxx3d014792025214321162110:ugpjhluozbgx26cofx3dFORID:10x26iex3dUTF-8x26newwindowx3d1x26qx3d西%E……

Forget it.

使用JQuery$(function(){$("iframe").attr("src", "你的网址")})
Copy after login
It took me a long time.

By the way. After testing this problem, the domain you referenced is not your own, so it is hard to say. You can try using baidu as your target. I have also tested it. The same code will be squeezed out.

if(top.location!=self.location)

top.location = self.location

Maybe someone has this method

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template