首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在静态页面上添加谷歌搜索?

在静态页面上添加谷歌搜索?
EN

Stack Overflow用户
提问于 2018-06-26 10:30:01
回答 1查看 0关注 0票数 0

我想在我的静态网站上添加搜索选项。我试过这段代码,但没有工作。我想从我的网站搜索结果显示。

代码语言:javascript
复制
<form action="https://google.com/search" method="get">
    <input type="hidden" name="sitesearch" value="http://emoncmt2.byethost15.com/Digital" />
    <input type="text" name="q" />
</form>
EN

回答 1

Stack Overflow用户

发布于 2018-06-26 20:22:56

你错过了提交按钮。 检查这个:

代码语言:javascript
复制
<form action="http://www.google.com/search" method="get">
    <input type="text" name="q"/>
    <input type="submit" value="search" />
</form>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100005529

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档