谷歌搜索结果在 iframe 中

Aym*_*man 1 html javascript iframe google-search

就我的研究而言,Google 停止允许其页面显示在 iframe 中。曾经有一个 URL ( http://gog.is ) 显示 Google 结果并允许在 iframe 中显示。该网站最近关闭了。

我想知道现在有什么方法可以在 iframe 中使用 Google 搜索结果吗?在 iframe 中显示搜索结果的最佳解决方案/替代方案是什么?

谢谢!

小智 6

您可以使用此链接而不是https://google.com/,它的效果非常好:

https://www.google.com/search?igu=1

对于特定的词,您可以使用此链接:

https://www.google.com/search?igu=1&ei=&q=YOUR+WORD

比 iframe 应该是这样的:

<iframe src="https://www.google.com/search?igu=1"></iframe>
Run Code Online (Sandbox Code Playgroud)