I would like to search and show a data from a local file like csv or txt in my html. Ex. open and read "file.cvs" = (1;a bc;2;def;3;gh i). If I input value "1", a text "a bc" will be shown.
<html>
<head><meta charset="UTF-8"></head>
<body onload="form1.reset();">
    <form id="form1">
      <fieldset>
      <label for="code">Code:</label>
      <input type="text" id="code" maxlength="6" required="">
      <p id="output">Text will be shown here!<p/>
      <input type="button" id="button" value="Ok">
      </form>
      </fieldset>
    </form>
<script>
    button.onclick = function() {
    document.getElementById("output").innerHTML = ????
</script>
</body>
</html>
Thanks in advance
 
     
    