I have this markup:
<input type="text" placeholder="...">
<button type="button" onclick="newInput();">Enter</button>
And I want to know how to call my function by typing enter
instead of having to actually press the button?
How could you do this?
Edit: this can be done with JS using event listeners but I want to know if you can call the function in pure HTML.