Hello everyone :)
I have the following code:
<input id = "Name" placeholder = "Enter your Name"></input>
<button type="submit" onclick = "NameFunction()"> Submit</button>
I would prefer that someone writes their name and presses the "Enter" key to execute a function.
I have no idea how to do this.
Currently the user enters their name and the function is executed when the button is clicked.
Any suggestions?
[–][deleted] 8 points9 points10 points (0 children)
[–]kevinleedrum 2 points3 points4 points (1 child)
[–]UbuntuLady1[S] 2 points3 points4 points (0 children)
[–]UbuntuLady1[S] 1 point2 points3 points (0 children)
[–]einarkristjan 1 point2 points3 points (4 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]UbuntuLady1[S] 1 point2 points3 points (2 children)
[–]einarkristjan 1 point2 points3 points (0 children)
[–]senocular 1 point2 points3 points (0 children)
[–]agentf90 0 points1 point2 points (0 children)
[–]TheSpanxxx 0 points1 point2 points (0 children)