Html 通过iFrame加载外部页面

Html 通过iFrame加载外部页面,html,iframe,Html,Iframe,我试图在iframe中加载网页,但每次都会遇到相同的错误: Not Found The requested URL /test/app/www.google.com was not found on this server. Apache/2.2.17 (Ubuntu) Server at lira.tlmat.unican.es Port 80 我正在参数(mypage.html?page=www.google.com)中将url发送到我的页面 但它总是试图在我的服务器中打开一个网页。我

我试图在iframe中加载网页,但每次都会遇到相同的错误:

Not Found

The requested URL /test/app/www.google.com was not found on this server.

Apache/2.2.17 (Ubuntu) Server at lira.tlmat.unican.es Port 80
我正在参数(mypage.html?page=www.google.com)中将url发送到我的页面

但它总是试图在我的服务器中打开一个网页。我想加载一个外部页面

这是我得到的错误:

GET http://myserver.es/test/app/www.google.com 404 (Not Found) newsPage.html?page=www.google.com:57
(anonymous function) newsPage.html?page=www.google.com:57
c jquery-1.9.1.min.js:3
p.fireWith jquery-1.9.1.min.js:3
b.extend.ready jquery-1.9.1.min.js:3
H

您可能需要在iframe中的URL开头加上“http://”,以指示它是一个外部URL。能否尝试将“http://”附加到page GET参数?

可能是服务器错误,而不是一开始的代码错误。请上传代码,以便有人能提供帮助。我添加了错误。请在www.google.com工作之前添加
http://
。我只是有问题,与同一来源域现在。但我认为用iframe来解决它是不可能的。你知道怎么做吗?