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

94
Views
Los contenidos de iFrame se devuelven indefinidos

Estoy tratando de trabajar en los contenidos de iFrame y el siguiente fragmento no devuelve el valor de h1 de la URL de iFramed. En su lugar, alerta undefined . ¿Puede alguien sugerir qué está mal aquí?

 <!doctype HTML> <head> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> </head> <body> <button id="myBtn">Login</button> <br><br> <iframe name="SSOBlock" id="SSOBlock" src="https://www.example.com/" ></iframe> <script> $("#myBtn").click(function(e) { e.preventDefault(); alert($('iframe[name=SSOBlock]').contents().find('h1').html()); }); </script> </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!