How change font color using onclick? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

How change font color using onclick?

There needs to be a word and by clicking on one of the characters it should be changed its color. Something like this: WO<a href="#" onclick="this.style.fontcolor='green'";>R</a>D

17th Feb 2019, 2:45 PM
Міхаіл Каралевіч
Міхаіл Каралевіч - avatar
2 Réponses
+ 5
WO<a href="#" onclick="this.style.color='green'">R</a>D
17th Feb 2019, 2:59 PM
Calviղ
Calviղ - avatar
+ 1
color
22nd Feb 2019, 2:07 AM
vijay shaw