我想使用JavaScript在多个网站上搜索相同的关键字。一次搜索多个网站的脚本
例如,在本网站上,当我在搜索栏中输入“XXXX”时,我得到this result。在这种情况下,使用url来查找另一个关键字非常简单。
但this other website正在使用基于JavaScript的搜索引擎,当我搜索关键字时,url不会更改。 这个搜索栏使用的代码看起来是这样的:
<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)
编辑:
它指的这种形式。有这method="post"
但它似乎并没有出现在代码中的任何其他地方。我怎么能找到它要去的地方?
<form name="formchercher" id="formchercher" method="post" action="">
<table height="94" border="0" cellpadding="0" cellspacing="0" id="menuH">
<tr>
<td width="37" valign="bottom" id="acc"><a href="index.php" onmouseover="MM_swapImage('bnav0','','images/env/nav/b_acc_ov.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/env/nav/b_acc_on.jpg" name="bnav0" alt="retour accueil" width="51" height="85" border="0" /></a></td>
<td align="center" valign="bottom" class="b2"><a href="potageres_2.php" onclick="ouvre_menu(2,'rub')" onmouseover="MM_swapImage('bnav2','','images/env/nav/b2_ov.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/env/nav/b2_off.jpg" name="bnav2" border="0" id="bnav2" /><br />
Potagères</a></td>
<td align="center" valign="bottom" class="b3"><a href="fleurs_3.php" onclick="ouvre_menu(3,'rub')" onmouseover="MM_swapImage('bnav3','','images/env/nav/b3_ov.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/env/nav/b3_off.jpg" name="bnav3" border="0" id="bnav3" /><br />
Fleurs</a></td>
<td align="center" valign="bottom" class="b4"><a href="aromatiques_4.php" onclick="ouvre_menu(4,'rub')" onmouseover="MM_swapImage('bnav4','','images/env/nav/b4_ov.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/env/nav/b4_off.jpg" name="bnav4" border="0" id="bnav4" /><br />
Aromatiques</a></td>
<td align="center" valign="bottom" class="b5"><a href="cadeau_5.php" onclick="ouvre_menu(5,'rub')" onmouseover="MM_swapImage('bnav5','','images/env/nav/b5_ov.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/env/nav/b5_off.jpg" name="bnav5" border="0" id="bnav5" /><br />
Cadeau</a></td>
<td align="center" valign="bottom" class="b6"><a href="engrais-verts_6.php" onclick="ouvre_menu(6,'rub')" onmouseover="MM_swapImage('bnav6','','images/env/nav/b6_ov.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="images/env/nav/b6_off.jpg" name="bnav6" border="0" id="bnav6" /><br />
Engrais verts</a></td>