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

2.2K
Views
Cómo recargar una página después de hacer clic en Aceptar usando Sweetalert

hola tengo un codigo usando sweetalert

 swal("Good job!", "You clicked the button!", "success")

este código mostrará un mensaje emergente y tiene un botón de acuerdo, lo que me gusta hacer es actualizar la página después de hacer clic en el botón de acuerdo.

¿Puedo hacer eso?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Puedes probar esto, funciona para mí.

 swal({ title: "Good job", text: "You clicked the button!", type: "success" }, function(){ location.reload(); } );
over 4 years ago · Santiago Trujillo Report

0

No me funciono la respuesta de Yoshioka, hice esto y funciono perfectamente:

 swal({title: "Good job", text: "You clicked the button!", type: "success"}).then(function(){ location.reload(); } );
over 4 years ago · Santiago Trujillo Report

0

Utilice la función de devolución de llamada...

 Swal.fire({ // Swal Setting's }).then((result) => { // Reload the Page location.reload(); });
over 4 years ago · Santiago Trujillo 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!