-1

I want the html file to instantly load into the textarea without the user having to click on the button to do so. How do I do this?

Philip
  • 159
  • 1
  • 1
  • 8

1 Answers1

1

You can use onchange on your file:

document.getElementById("loadFile").onchange = function() {
    // ...
})
Zoe Edwards
  • 12,999
  • 3
  • 24
  • 43