When my fingers are lifted from the keyboard, some code will be automatically executed.
I want to trigger this function when I click a button (onclick) instead of using onkeyup.
<div id="result"></div>
<textarea cols="50" rows="20"
onkeyup="document.getElementById('result').innerHTML=this.value;">
</textarea>
<button>Submit</button>