|
Nexternal.NET External Search Code |
Question:I would like to place a search box on my homepage. What code would you recommend. |
Response:
<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>
|
|