I'm currently writing functions for alternatives to built-in functions such as prompt. I want to be able to ask a question and have the user type into an input box, and return the value when the user presses a submit button. I can't seem to figure out how I can pause the function until the submit button is pressed, and then return the value. I want to be able to call multiple of these functions to have the user be prompted sequentially. Is this even possible? How can I go about this in a simple and reproducible way, so I can implement this into other functions? Here's an example of what I want to do
input("What is your name?");
The input function should pause and wait for a submit button to be pressed and return the value of the input field. Plain and simple.