我这儿有一个文本框...
<input name="search" type="text" maxlength="512" id="search" class="searchField" autocomplete="off" title="" />
我还有这个提交
<input type="submit" name="btnSearch" value="Search" onclick="location.href='http://www.website.com/search/';" id="btnSearch" class="buttonSearch" />
我要做的是在我的文本框中添加任何内容。
onclick="location.href='http://www.website.com/search/';"
因此,它看起来像这样...
onclick="location.href='http://www.website.com/search/what ever the user searches';"
我该如何做到这一点,我已经疯狂地谷歌搜索了很久。