Hello so I have the following code
<div id="js_example">
<p id=js_intro_text> Introduce yourself! </p>
<form id="js_form">
Please enter your name: <input id = "name_form" type="text" name="full_name"><br>
<input type="button" onclick=greet() value="submit">
</form>
<p id="js_intro_answer"></p>
</div>
This is a very simple form that has a button that reads the value of the form text box and greets the user depending on the name they type. However, the only way to activate the function is by pressing the submit button. Is there a way to activate the greet() function wihtin the text box by pressing enter while the user has selected said text box?
Thanks