【问题标题】:Is there any way to set up form attribute input tags to get Google Advanced Search to work with no JS有没有办法设置表单属性输入标签来让谷歌高级搜索在没有 JS 的情况下工作
【发布时间】:2021-02-02 00:01:14
【问题描述】:

我正在为 CS50 中的 Web 编程 Python 和 JavaScript 课程做项目 0。我在谷歌高级表单上遇到问题,无法在输入字段中返回项目。到目前为止我已经尝试过这是我的代码。但它正在重定向我相同的谷歌高级页面。请帮忙。

<form action="https://www.google.com/advanced_search?as_q=q&as_epq=r&as_oq=s&as_eq=t">

对于所有这些词<input type="text" class="input_advanced" name="as_q"> 准确的单词或短语<input type="text" class="input_advanced" name="as_epq"> 这些词中的任何一个:<input type="text" class="input_advanced" name="as_oq"> 没有这些词:<input type="text" class="input_advanced" name="as_eq"> 为了 <input type="submit" id="Search_button" value="Advanced Search">

【问题讨论】:

    标签: html forms cs50 html-input


    【解决方案1】:

    表单动作属性有问题。将其与 Google advanced_search 页面上的 action 属性进行比较,您会发现错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-10
      相关资源
      最近更新 更多