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

222
Views
Cómo crear una página about:blank con un iframe personalizado

Estoy tratando de hacer un formulario que dice así:

  1. Introduces una URL en un cuadro de texto.
  2. Haces clic en un botón y se abre una página about:blank en una nueva pestaña.
  3. Esta página tiene un iframe que ocupa toda la pantalla y el src se establece en el enlace que ingresó en el cuadro de texto.

Esto es lo que he intentado, pero lo que elija se abre en blanco, estoy usando google.com como ejemplo aquí.

 <!DOCTYPE html> <html> <head> <title>about:blank | 3kh0</title> </head> <body> <script> function create() { var url = document.getElementById('input'); var win = window.open(); win.document.body.style.margin = '0'; win.document.body.style.height = '100vh'; var iframe = win.document.createElement('iframe'); iframe.style.border = 'none'; iframe.style.width = '100%'; iframe.style.height = '100%'; iframe.style.margin = '0'; iframe.src = url; win.document.body.appendChild(iframe); } </script> <input type="text" value="https://www.google.com/" placeholder="https://google.com" id='input' autofocus> <button onclick='create()'>Create!</button> </body> </html>

Si tienes alguna idea sobre cómo puedo hacer esto, ¡sería increíble! :)

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!