How i return a search results in my page? : I have this search  bar and I would like if someone can help me when I press the search button to look for keywords in  a text file that you have on your computer and bring me the words are found back to the page ...i'm a beginner and do not really manage how to fix it ... if someone can show me how to do it in writing i would be grateful.




Search engine:

<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;" />


Button:

<input class="search2" type="submit" name="submition" value="Cauta" style=" padding-  
bottom:20px; left: 300px; top: 0px; height: 50px" />
<input class="search2" type="hidden" name="sitesearch" value="default.html" />

JS:

<script type="text/javascript">
    document.getElementById('frmSearch').onsubmit = function() {
        window.location = 'http://www.google.ro/search?q=' + document.getElementById('txtSearch').value;
    }
</script>


