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

125
Views
¿Cómo mover div al centro de la pantalla desde iframe?

Existe el siguiente código del archivo HTML principal:

 <!DOCTYPE html> <html> <head> <title>Read Text File</title> </head> <body> <iframe src="http://localhost:8092/iframe.html"/> </body> </html>

Y hay código de iframe:

 <!DOCTYPE html> <html> <head> <title>Read Text File</title> </head> <body> <div id="text">This just text</div> <button id="btn">Click</button> <div id="popup">Center</div> <script> document.querySelector('#btn').addEventListener('click', () => { alert('center'); }); </script> </body> </html>

Como puede ver, mi archivo principal incluye iframe. Mi pregunta: ¿es posible poner div con id "emergente" en el centro de la pantalla (no solo iframe)? El dominio del archivo principal y el dominio del iframe no son lo mismo.

Gracias por adelantado.

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!