How can you use alert(); to make a yes/no choice in JS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can you use alert(); to make a yes/no choice in JS?

I want to know how to make an alert with more than one button, so that it doesn’t just let you press “ok” each time. I want to be able to make one that you can press “yes” or “no”, etc.

12th Jul 2019, 9:03 PM
theAstarrr
theAstarrr - avatar
3 Answers
+ 1
confirm and prompt...
12th Jul 2019, 9:32 PM
nicolas turek
nicolas turek - avatar
+ 1
hi Judah Thoreen check out these videos and links https://love2dev.com/blog/custom-javascript-alert/ https://www.developphp.com/video/JavaScript/Custom-Alert-Box-Programming-Tutorial also similar questions have been asked before so next time use the search bar
12th Jul 2019, 9:16 PM
Ollie Q
Ollie Q - avatar