Nexternal: Place a store search box on your website

Want your customers to be able to search your Nexternal store from a website page? Use this code.

Pamela Topper avatar
Written by Pamela Topper
Updated over a week ago

Product: Nexternal

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
​


​
​
​

Did this answer your question?