把<button换成<a
==================
<a href="JavaScript:document.forms.CatalogSearchForm.searchTerm.value=trim(document.forms.CatalogSearchForm.searchTerm.value);document.forms.CatalogSearchForm.action=getAbsoluteURL()+'AjaxCatalogSearchView'; submitSpecifiedForm(document.forms.CatalogSearchForm);"> </a>
<!-- <button name="searchBtn" id="WC_CachedHeaderDisplay_button_2" type="button" value="<fmt:message key='SEARCH_CATALOG' bundle='${storeText}' />" class="search-btn" οnclick="JavaScript:document.forms.CatalogSearchForm.searchTerm.value=trim(document.forms.CatalogSearchForm.searchTerm.value);document.forms.CatalogSearchForm.action=getAbsoluteURL()+'AjaxCatalogSearchView'; submitSpecifiedForm(document.forms.CatalogSearchForm);" ></button> -->
转载于:https://blog.51cto.com/sontou/543562