0

background colour change when prompt window appears, how to do this using js?

background colour change when prompt window appears in the website

22nd Dec 2023, 11:12 AM
Sam
2 Answers
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
22nd Dec 2023, 3:58 PM
Stefanoo
Stefanoo - avatar
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.
22nd Dec 2023, 4:31 PM
Stefanoo
Stefanoo - avatar