I am making a program in JavaScript that uses the canvas. I want to get user input from the prompt() function, but that has been deprecated in Electron Fiddle that I am using.
What is an alternative to prompt() that does not use any HTML elements?
I am making a program in JavaScript that uses the canvas. I want to get user input from the prompt() function, but that has been deprecated in Electron Fiddle that I am using.
What is an alternative to prompt() that does not use any HTML elements?
2
Answers
there is no alternative for prompt() built-in in the window object
but if you want it , there is libraries that do the same thing for you
but they work with html elements
pure popup could help you
Maybe you can use the
<dialog>
element?