Execute function on button click
The Javascript function handleText fills the input field with the words Hello World. But, there is no code to execute this function.Complete the existing code below such that the function is called when the button is clicked. Verify by clicking the button.
View
<input type="text" id="input" readonly/> <button type="button" id="button">Click Me</button> HTML
Javascript