Javascript code I want to use textarea, input(Submit) button when I click the submit button, I want to store it in the text file (.txt) But when I click the submit button, it is not stored in the text file How to fix it? my code - <div> <label><b> My - </b></label> <textarea id="edu" name="edu" placeholder="Education " style="height:150px"></textarea> </div> <div> <input type="button" id="bt" value="Submit" onclick="submitIndex()" /> </div> </div> </div> </body> <script> let submitIndex = () => { getElementById('msg'); const msg1 = document.getElementById('msg1'); 'Education ' + edu.value +' \r\n ' + ' \r\n '; const textToBLOB = new Blob([data], { type: 'text/plain' }); const sFileName = 'form.txt'; newLink.download = sFileName; if (window.webkitURL != null) { newLink.href = window.webkitURL.createObjectURL(textToBLOB); } else { newLink.href = window.URL.createObjectURL(textToBLOB); newLink.style.display = "none"; document.body.appendChild(newLink); } newLink.click(); } </script>.