Will you ever have to use prompt() when making real web applications? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Will you ever have to use prompt() when making real web applications?

17th Feb 2019, 11:58 PM
Kiro Cosmos
Kiro Cosmos - avatar
2 Answers
+ 4
You can consider custom make your prompt. It's easy to override the default built in prompt function. window.prompt = function (message) { return yourCustomDialog(message); } Here is an example to make prompt more appealing: https://code.sololearn.com/Wg8UngMh1hbS/?ref=app
18th Feb 2019, 1:01 AM
Calviղ
Calviղ - avatar
+ 10
Yeah sure! Just maybe, it might not "look professional"
18th Feb 2019, 12:16 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar