admin管理员组文章数量:1327308
To the extend of my research, Google stopped allowing its page being displayed in an iframe. There used to be a URL () which showed Google results and allowed display in an iframe. That site went down recently.
I'm wondering is there any way at all now to have Google search results in an iframe? What's the best solution/alternative to have search results in an iframe?
Thanks!
To the extend of my research, Google stopped allowing its page being displayed in an iframe. There used to be a URL (http://gog.is) which showed Google results and allowed display in an iframe. That site went down recently.
I'm wondering is there any way at all now to have Google search results in an iframe? What's the best solution/alternative to have search results in an iframe?
Thanks!
Share Improve this question asked Feb 25, 2016 at 17:58 Ayman Abdel-RahmanAyman Abdel-Rahman 5501 gold badge6 silver badges13 bronze badges 5- Well google does not want t be framed so only way around it is a proxy that removes the headers – epascarello Commented Feb 25, 2016 at 18:10
- @epascarello Ok we can do that but the issue is also with the result links. They point to google first then redirect to the resulting website. If that redirection happens partially through the browser (iframe) it would fail. Do you have any idea whether the results would be displayed normally when clicked? – Ayman Abdel-Rahman Commented Feb 26, 2016 at 7:40
- Reason you are not using their custom search or their apis? – epascarello Commented Feb 26, 2016 at 13:13
- @epascarello tell me more about that – Ayman Abdel-Rahman Commented Feb 26, 2016 at 17:03
- @epascarello Note that I want to search the entire web for something, and not custom search within my app/website – Ayman Abdel-Rahman Commented Feb 26, 2016 at 17:08
1 Answer
Reset to default 8You can use this link instead of https://google./ , it works pretty good:
https://www.google./search?igu=1
With specific word you can use this link:
https://www.google./search?igu=1&ei=&q=YOUR+WORD
Than iframe should looks as this:
<iframe src="https://www.google./search?igu=1"></iframe>
本文标签: javascriptGoogle search results in an iframeStack Overflow
版权声明:本文标题:javascript - Google search results in an iframe - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742204170a2432505.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论