Home >Web Front-end >HTML Tutorial >Strange iframe automatically jumps to _html/css_WEB-ITnose

Strange iframe automatically jumps to _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:16:091445browse

本帖最后由 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还没有来得及测试

回复讨论(解决方案)

补充一下代码: e65b58f2c0c26a9c3f922f3fe6a1f33a 
                 抱歉,没有找到与”              fff434fa08f85be5c070c0b784dde3b4西农大54bdf357c58b8a65c66d7c19c8e4d114 
              “相关115网盘下载资源。 ff9d32c555bb1d9133a29eb4371c1213建议您:ff9d32c555bb1d9133a29eb4371c1213--------    用网页搜索试试看   8a1115f810305735f7085b22a44d491f884064cf0df3f401d93710ee5f7b88ff网页搜索e6e38b3c62e8df885fe2e3986461aa635db79b134e9f6b82c0b36e0489ee08edff9d32c555bb1d9133a29eb4371c1213--------    看看输入的文字是否有误ff9d32c555bb1d9133a29eb4371c1213--------    去掉可能不必要的字词,如“的”、“什么”等ff9d32c555bb1d9133a29eb4371c1213ff9d32c555bb1d9133a29eb4371c1213以下结果由52f9c9504b0284b44e2d1cf8ff8ff9ab08791a2f3d954a7f26158870fb683d4a搜搜+e6e38b3c62e8df885fe2e3986461aa635db79b134e9f6b82c0b36e0489ee08ed(SoSoplus.com)提供0b9f73f8e206867bd1f5dc5957dbcb3854bdf357c58b8a65c66d7c19c8e4d114 
       0efc504b2820907f7611df0f50601fd5065276f04003e4622c4fe6b64f465b88 
              16b28748ea4df4d9c2150843fecfba68
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", "你的网址")})
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

Statement:
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