I want to change font colour using JavaScript of a web page, I've made a button in my html code, after pressing that button i want my font to change it's colour. Any ideas?
Asked
Active
Viewed 59 times
0
-
1Please include your HTML in the question along with the JS you've written in an attempt to achieve your goal. – francisco neto Oct 18 '20 at 13:11
-
1Set a color style definition on the body: document.body.style.color = [color-value]; – Drew Oct 18 '20 at 13:13
1 Answers
-1
I suggest to swap files upon that button click (using JS) to the other CSS file where the font color has changed but with same content.

Roma
- 1
- 2