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

163
Views
etiqueta de imagen html: manejo del error de carga

Estoy tratando de mostrar una imagen y manejar el error de carga, this.onerror funciona bien, pero cuando una fuente no se carga, puedo ver una imagen rota, entonces, ¿cómo puedo agregar la función de error a cada etiqueta de fuente?

 <picture> <source srcset="images/test-480w.png" media="(max-width: 600px)" /> <source srcset="images/test-800w.png" media="(min-width: 600px)" /> <img class="lazyload" data-src="images/image.jpg" onerror="this.onerror=null;this.src='image_not_found.jpg';" style="width: 200px;height: 100px;"/> </picture>
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!