-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?

0

1 Answer 1

1

You can use onchange on your file:

document.getElementById("loadFile").onchange = function() {
    // ...
})
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.