I'm making a html JAVASCRIPT turtle website, how would I be able to make text from a text input box a variable and accessible from javascript? And I want it so when I change the text inside the text box that when I click OK it send the new text and not the old one.
<input type="text" value="Put a number here"/>