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?
Asked
Active
Viewed 162 times
1 Answers
1
You can use onchange
on your file:
document.getElementById("loadFile").onchange = function() {
// ...
})

Zoe Edwards
- 12,999
- 3
- 24
- 43