Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA
+ 2

Can i change color of any element(text) through event handler?

i want to change color of text on which i apply onmouseover event handler.

<a>
19th Jul 2017, 6:34 PM
Suraj Kumar
Suraj Kumar - avatar
1 Respuesta
+ 12
el.onmouseover = function(){ this.style.color = "red"; } Demo 1: https://code.sololearn.com/WRBuwkn5UypT/?ref=app Demo 2: https://code.sololearn.com/WzFopo7BN3kq/?ref=app Demo 3: https://code.sololearn.com/WrvDGI0bEPt6/?ref=app
19th Jul 2017, 6:39 PM
Maz
Maz - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
4 Votes
I am new
1 Votes
Changing String Variables into int in C++
0 Votes
Python intermediate help with dictionaries
0 Votes
Marquee
1 Votes
Fill in the blank to declare a static variable.
0 Votes
What are the advantages and disadvantages of using let vs var when declaring variables in JavaScript?
0 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes
Popsacles Aufgabe
1 Votes