0
background colour change when prompt window appears, how to do this using js?
background colour change when prompt window appears in the website
2 Respuestas
0
Here is a SoloLearn lesson about changing attributes and style of an element.
https://www.sololearn.com/learn/o-JavaScript/2754/?ref=app
And this is a lesson about prompts.
https://www.sololearn.com/learn/o-JavaScript/1149/?ref=app
And finally a lesson about events.
https://www.sololearn.com/learn/o-JavaScript/2758/?ref=app
0
Let me add some words. You can't react on the prompt directly. But before your prompt loads some other events happens. And on these events you can react.
For example window.onload.
But it depends on when you trigger your prompt.