How to Search a word "from a local file" using javascript

I have the html code to read a local file below:

<p><input id="file-input" type="file" /></p>
<p>Search keyword</p>
<p><input id="searchbar" spellcheck="true" type="text" /></p>
<h3>Results</h3>
<pre id="file-content">No data yet.</pre>

which I would like to work with the search javascript given by Roko C. Buljan in this post here

35 thoughts on “How to Search a word "from a local file" using javascript”

Leave a Comment