VBS提交表单问题 200分....

来源:百度知道 编辑:UC知道 时间:2024/05/29 15:17:22
这个页面怎么提交搜索表单.呃...自己做的无法给关键字赋值..比如我搜索的关键字是"我们说好的"
http://www.youtube.com/

搜索(html)源码:

<form autocomplete="off" class="search-form" action="/results" method="get" name="searchForm">
<div class="search-wrapper">
<input id="mast-head-searchterm" class="search-term" name="search_query" type="text" tabindex="1" onkeyup = "top.goog.i18n.bidi.setDirAttribute(event,this)" value="" maxlength="128" onkeydown="searchBarFocusTest(event)" onfocus="addClass(this, 'search-term-focus')" onblur="removeClass(this, 'search-term-focus')"/>
<input id="search-type-masthead" name="search_type" type="hidden" value="" />

打开页面。 然后在浏览器地址栏输入:

javascript:document.searchForm.search_query.value="关键字";document.searchForm.submit();

这句代码不要分行。输入地址栏,回车即可。

不会
建议多看下那个网址的代码