Can I manipulate alerts? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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