Product: Nexternal
Article Link: http://help.truecommerce.com/en/articles/4439582-nexternal-place-a-store-search-box-on-your-website
The following code is recommended for your use to place a Nexternal store search on your website pages:
<script type="text/javascript">
<!--
function validateSearch(FForm)
{
if (FForm.Keyword.value == "search...")
{
alert("Please enter a valid search term");
FForm.Keyword.value='';
FForm.Keyword.focus();
return false;
}
else
{
return true;
}
}
//-->
</script>
<form
action="http://www.nexternal.com/ACCOUNTNAME/categories.aspx" method="get")id="searchForm" onsubmit='return validateSearch(this);'>
<input id="searchField" type="text" name="Keyword"
value="search..." onclick="this.value=''"
onblur="if (this.value.length==0)
{this.value = 'search...';}" />
<input type="submit" value="Go"
id="searchButton" />
<br/>
<a
href="http://www.nexternal.com/ACCOUNTNAME/search.aspx">Advanced Search</a>
</form>
rev. 10/6/20
β
β
β
β