Sign up to request clarification or add additional context in comments.
Comments
0
You can get only one input using prompt. You will either have to display multiple prompts or implement a custom dialog window which will basically be a form.
window. prompt() instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.- this is from mdn, you need input