from中嵌套from的一种方法

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>



posted @ 2011-09-27 09:11  匆匆夏日  阅读(1598)  评论(0编辑  收藏  举报