Javascript 一次搜索多个网站的脚本
我想使用javascript在几个网站上搜索相同的关键字 例如,在这个网站上,当我在搜索栏中键入“XXXX”时,我会得到。在这种情况下,很容易使用url查找另一个关键字 但是使用的是基于javascript的搜索引擎,当我搜索关键词时,url不会改变。 此搜索栏使用的代码如下所示 :Javascript 一次搜索多个网站的脚本,javascript,Javascript,我想使用javascript在几个网站上搜索相同的关键字 例如,在这个网站上,当我在搜索栏中键入“XXXX”时,我会得到。在这种情况下,很容易使用url查找另一个关键字 但是使用的是基于javascript的搜索引擎,当我搜索关键词时,url不会改变。 此搜索栏使用的代码如下所示 : <li class="lirecherche"> <input name="rechercher" value="rechercher" onclick="this.val
<li class="lirecherche">
<input name="rechercher" value="rechercher" onclick="this.value=''" />
<a href="javascript:document.formchercher.submit();" style=" text-decoration: none;">OK</a></li>
Is there a way to send a search request to this website from a script or an url ? (not a script that automatically type the keyword and press enter for me, but which is actually doing the research)
您需要找到存储在“document.formchercher”中的表单,它几乎肯定是输入字段的父级。它的开始标记中应该有它的操作和方法。您需要找到存储在“document.formchercher”中的表单,它几乎肯定是输入字段的父字段。它应该在它的开始标签中有它的动作和方法。做了更多的研究,我想出了该做什么 :
<form name="formchercher" id="formchercher" method="post" action="">
此表单没有任何操作。这意味着将提交到此表单所在的index.php页面
我只需要用完整的URL来填充操作 :
<form name="formchercher" id="formchercher" method="post" action="http://www.biaugerme.com/index.php">
通过这种方式,我可以从自己的html页面进行研究,并在他们的网站上打开结果。再做一点研究,我就知道该怎么做了 :
<form name="formchercher" id="formchercher" method="post" action="">
此表单没有任何操作。这意味着将提交到此表单所在的index.php页面
我只需要用完整的URL来填充操作 :
<form name="formchercher" id="formchercher" method="post" action="http://www.biaugerme.com/index.php">
通过这种方式,我可以从我自己的html页面进行研究,并在他们的网站上打开结果