Here is the code for a search bar engine that I am working on.
<form id="frmSearch" class="search1" method="get" action="default.html" /> <input class="search" id="txtSearch" type="text" name="search_bar" size="31" maxlength="255" value=""
<style="left: 396px; top: 20000px; width: 293px; height: 60px;" />
<input class="search2" type="submit" name="submition" value="Search" style=" padding- bottom:20px; left: 300px; top: 0px; height: 50px" />
<input class="search2" type="hidden" name="sitesearch" value="default.html" />
<script type="text/javascript">
document.getElementById('frmSearch').onsubmit = function() {
window.location = 'http://www.google.ro/search?q=' + document.getElementById('txtSearch').value;
return false;
}
</script>
I would like the search button to be able to search through a local text file when clicked by the user.
Once the search has been initiated, I want it to continuously refresh with results containing the same keyword.
I also need the found keywords from the text file to be displayed in small frames on my graphical interface.
Thank you for any assistance you can provide.