0
How can I change colors randomly without reloading ?
I tried to change the background colors of a paragraph but I can only change it once. I have to reload in order to change it again. How can I do without reloading ? Here is the code, you can check it. https://code.sololearn.com/W3JIWJwCaIch/?ref=app
2 odpowiedzi
+ 5
Cut html line 70 and 72 and paste them inside the change_color function.
Also, random_color should be Math.floor, not Math.ceil.
+ 2
Hello 🐯 Alex Tusinean 🐤 , thank you 😁. Now it works well.