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

150
Views
Botón onload función de llamadas

tengo el siguiente boton

 <button type="button" title="Previous value:" ***onload="test()"*** class="btn btn-warning mb-2" style="padding: 4px 8px 4px 8px; border-radius: 1rem;"> <i class="fas fa-exclamation-triangle text-white"></i> </button>

Que lo quiero cuando se carga para llamar a la función test ()

 function test() { console.log("I am in"); }

en realidad, esta función creará un popover. Pero no parece estar llamando a la función. (No, onclick o hover no me está ayudando).

¿Alguna sugerencia, idea de cómo lograr eso?

Muchas gracias de antemano.

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

0

El evento onload solo se admite en estas etiquetas HTML:

 <body> <iframe> <img> <input type="image"> <link> <script> <style>

echa un vistazo a: atributo onload HTML

about 4 years ago · Juan Pablo Isaza Report

0

 <button type="button" title="Previous value:" onclick="test()" class="btn btn-warning mb-2" style="padding: 4px 8px 4px 8px; border-radius: 1rem;"> <i class="fas fa-exclamation-triangle text-white"></i> </button> <script> function test(){ //alert("test"); console.log("I am in"); } </script>`enter code here`
about 4 years ago · Juan Pablo Isaza Report

0

Intente usar Ajax y llame a la función por id o clase haciendo clic en el botón.

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!