Can I manipulate alerts? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I manipulate alerts?

I notice when alerts are displayed, they are easily avoided by clicking the window behind them. Is there a way to restrict users to the "ok" button?

18th Nov 2018, 2:48 PM
Joshua Morgan
Joshua Morgan - avatar
1 Answer
+ 2
alert boxes are hardwired into the JavaScript environment you're using.chrome,sololearns playground. e.t.c you cannot tap into its source code and change its appearance or behaviour. you can create your own custom alert boxes tho
18th Nov 2018, 3:18 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar