I have a search bar and when I press the search button it will look for keywords in the text file that you have on your computer, then bring to me the words that are found back to the page?
document.getElementById('frmSearch').onsubmit = function() {
window.location = 'http://www.google.ro/search?q=' + document.getElementById('txtSearch').value;
}
<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="Cauta" style=" padding-bottom:20px; left: 300px; top: 0px; height: 50px" />
<input class="search2" type="hidden" name="sitesearch" value="default.html" />