I am new to website coding and am using the Webplus site search tool. However I only want it to search certain pages on my site, and have discovered that by including a word on the pages I want searching and then including that (hidden) in the search input, it will only browse these pages.
I have tried the following code:
<DIV ALIGN=CENTER>
<form id="site_search_1" action="" onSubmit="return false;" style="position: absolute; top:117px; left:584px; width:250px; height:44px;margin: 0; padding: 0;">
<input id="site_search_1_input" value=" secret" name="site_search_1_input" onkeypress="
if (event.keyCode==13)
window.location.href='results.html?site_search_results_1='+document.getElementById('site_search_1_input').value+'&depth=0;"
style="width: 170px; border: none; /* EditStyle */" type="text">
<div style="display: inline;">
<input type="image" src="wpimages/Search Icon.png" style="position: absolute; top:-5px; left:220px;" button onclick="
window.location.href='results.html?site_search_results_1='+document.getElementById('site_search_1_input').value+'&depth=0';"
value="Search" name="submit" onfocus="this.blur()" onmouseover="this.src='wpimages/Search Icon (H).png'" onmouseout="this.src='wpimages/Search Icon.png'" onmousedown="this.src='wpimages/Search Icon (H).png'"/>
</div>
</form>
<script type="text/javascript" language="JavaScript">
document.forms['site_search_1'].elements['site_search_1_input'].focus();
</script>
</DIV>
but this is a bit messy and thought their may be a way to search using 2 inputs, one with the secret word as the value, but being hidden. Any help would be much appreciated and any alternative ways of searching only specified pages using some basic code is welcome.