• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
+ 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
How do we code calculator
2 Votes
What programming language should i learn to make applications or games?
0 Votes
I need help
1 Votes
My hearts are disappering :(
0 Votes
How to learn python fast than usual in sololearn?
0 Votes
What can html, css and javascript do
0 Votes
Pressure and tension
2 Votes
How to make a selection on a calculator in Python
0 Votes
Conducción de calor o Q=−kAdTdxQ = -k A \frac{dT}{dx}Q=−kAdxdT o Pared 2 m², espesor 0.1 m, k = 50 W/m°C, ΔT = 30°C → Q ≈ 30,0
0 Votes
Where is code bit
0 Votes