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

280
Views
¿Por qué "Window.open" no funciona cuando hago clic en el botón?

Estoy tratando de abrir un archivo HTML con un botón. Aquí está mi código:

 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="styleset.css"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <title>example</title> </head> <body> <header> <div class="selectoff head"> <img src="example.png" alt="Favicon/Logo" id="imgh"> <h1 id="h1h">example</h1> </div> </header> <br> <div class="center lhalf selectoff"> <br> <h1>example</h2> <button type="button" id="example" onclick="Window.open('list.html','_blank')">c\Lorem ipsum dolor sit amet</button> </div> </body> </html>

El error que apareció fue:

 11 index.html:21 Uncaught TypeError: Window.open is not a function at HTMLButtonElement.onclick (index.html:21:103)

Intenté buscar cualquier otra mención de Window.open() pero el botón era la única referencia.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Es window.open() , sin W mayúscula.

about 4 years ago · Juan Pablo Isaza Report
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!