如何在不被劫持的显示iframe标签的网站网址是什么?

我设置“https://www.google.com/adsense/”作为我的网页上的iframe标签的src属性值,但预期它不会显示谷歌的登录表单。

我试着在Firefox,Chrome和Opera加载网页,等等,但看到同样的空iframe中不显示任何内容。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> </head> <body> <iframe name="box" id="box" target="_self" style="height: 100%; width: 100%;" src="http://www.google.com/adsense/"> </iframe> </body> </html>

我试图执行“$ wget的http://www.google.com/adsense/”,下面是响应:

--2011-08-16 17:06:23-- http://www.google.com/adsense HTTP request sent, awaiting response... 302 Found Location: https://www.google.com/adsense [following] --2011-08-16 17:06:23-- https://www.google.com/adsense HTTP request sent, awaiting response... 302 Moved Temporarily Location: /adsense/?gsessionid=qDCUpEipz54ooy_u661RMw [following] --2011-08-16 17:09:33-- https://www.google.com/adsense/?gsessionid=qDCUpEipz54ooy_u661RMw HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://www.google.com/adsense/login2?gsessionid=qDCUpEipz54ooy_u661RMw [following] --2011-08-16 17:09:34-- https://www.google.com/adsense/login2?gsessionid=qDCUpEipz54ooy_u661RMw HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://www.google.com/accounts/ServiceLogin?service=adsense&rm=hide&nui=15&alwf=true&ltmpl=adsense&passive=true&continue=https%3A%2F%2Fwww.google.com%2Fadsense%2Fgaiaauth2&followup=https%3A%2F%2Fwww.google.com%2Fadsense%2Fgaiaauth2&hl=en_US [following] --2011-08-16 17:09:34-- https://www.google.com/accounts/ServiceLogin?service=adsense&rm=hide&nui=15&alwf=true&ltmpl=adsense&passive=true&continue=https%3A%2F%2Fwww.google.com%2Fadsense%2Fgaiaauth2&followup=https%3A%2F%2Fwww.google.com%2Fadsense%2Fgaiaauth2&hl=en_US HTTP request sent, awaiting response... 200 OK

似乎造成302的HTTP响应的问题。

我的问题是:

  • 有一些属性的iframe标签可以解决这个问题呢?
  • 如何处理可能包含不止一个HTTP 302 iframe中正常显示重定向的页​​面?
分类:JavaScript的 时间:2015-03-15 人气:0
分享到:

相关文章

Copyright (C) 55228885.com, All Rights Reserved.

55228885 版权所有 京ICP备15002868号

processed in 3.558 (s). 10 q(s)