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

55
Views
estoy aprendiendo javascript y estaba pensando cómo puedo agregar una alerta o confirmar un cuadro con javascript cuando un usuario quiere cerrar la pestaña?

Estoy aprendiendo javascript y estaba pensando en cómo puedo agregar una alerta o un cuadro de confirmación con javascript cuando un usuario quiere cerrar la pestaña. Sería muy bueno si me ayudan a hacer el trabajo. Gracias de antemano.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

 window.onbeforeunload = function(e) { return 'Are you sure want to close the tab'; };

about 4 years ago · Juan Pablo Isaza Report

0

alert("¡Hola! ¡¡Soy un cuadro de alerta!!");

about 4 years ago · Juan Pablo Isaza Report
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!