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

203
Views
¿Cómo evitar que se actualice la página de envío de formularios cuando se llama al envío sin el botón?
<form id="form1" name="form1" method="post"> ... </form>
 function f(){ document.form1.method="post"; document.form1.submit(); }

He intentado estos métodos, pero todos fallaron:

1.

cambio de método f:

 document.form1.method="post"; document.form1.submit(function(e) { e.preventDefault(); });

ha fallado.

2.

cambiar elemento de formulario:

 <form id="form1" name="form1" method="post" onclick="return false" onsubmit="return false"> ... </from>

ha fallado.

¿Hay alguna forma de evitar que se envíe la actualización de la página donde se encuentra el formulario?

Muchas gracias.

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!