Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Cambie el cursor a 'esperar' al hacer clic y vuelva a la normalidad usando JavaScript

Necesito cambiar el estilo del cursor para wait una vez que se hace clic en un botón con JavaScript. Me las arreglé para hacer eso, pero cuando el usuario hace clic en el botón Atrás en el navegador, el cursor permanece en el estado de wait .

JavaScript:

 document.getElementById('button').onclick = function() { document.body.style.cursor='wait'; document.getElementById('button').style.cursor='wait'; }; document.onload = function() { document.body.style.cursor='default'; };

Intenté establecer el cursor en el default cuando se carga la página sin actualizar la página, pero no funciona. ¿Cómo puedo restablecer el cursor a la normalidad en la página inicial si el usuario retrocede?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!