html前台代码为:
View Code
div class="mainsearch clearfix">
<form method="post" name="CatalogSearchForm" action='proList.aspx'
id="CatalogSearchForm">
<div class="searcharea">
<input type="text" onfocus="$('#searchKeywords')[0].value=''; document.getElementById('searchKeywords').onfocus = Function('void(0)');"
name="searchKeywords" id="searchKeywords" value="D7000" />
</div>
<div class="searchnow">
<a title="搜索" href="" onclick="searchProduct();">搜索</a></div>
<script type="text/javascript">
function searchProduct()
{
var name=$("#searchKeywords").val();
window.open("proList.aspx?ProName="+name);
}
</script>
</form>
</div>