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

322
Views
la función onload no funciona en el párrafo en JavaScript

Entonces, el error es que el párrafo no cambia mientras cargamos la página.

Aquí está el código, he agregado el JavaScript en la cabeza. Incluso intenté usar JavaScript externo, pero tampoco funcionó. Usé la función de carga de JavaScript para cambiar mi HTML interno del párrafo, pero no funcionó.

 <html> <head> <script type="text/JavaScript"> function fun_name() { alert("Working"); document.getElementById("para").innerHTML = "After Loading" } </script> </head> <body> <p onload="fun_name();" id="para">Before Loading</p> </body> </html>
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!