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

246
Views
cómo resolver windows.close no funciona con street view

Estoy tratando de abrir una ventana flotante de Street View con "window.open" y luego cerrar con "close()". Intento con google.com y funciona (se cierra la ventana). Pero, con la ventana de Street View, no funciona (no cierra). Si abro y cierro inmediatamente funciona. Creo que es por la redirección. ¿Alguna idea para solucionar?

Lo probé en https://www.w3schools.com/html/tryit.asp?filename=tryhtml_default_default

 <!DOCTYPE html> <html> <body> <h1>Google</h1> <button onclick="openGoogle()">Open "google"</button> <button onclick="closeGoogle()">Close "google"</button> <br> <h1>StreetView</h1> <button onclick="openStreetView()">Open "streetview"</button> <button onclick="closeStreetView()">Close "streetview"</button> <script> let google; let streetview; function openGoogle() { google = window.open("https://www.google.com/", "Google", "width=800,height=800"); } function closeGoogle() { google.close(); } function openStreetView() { streetview = window.open("https://www.google.com/maps/@43.3396007,-1.8096601,3a,75y,90t/data=!3m6!1e1!3m4!1sZ81gym2y_KL-MPWdBQ1Mqg!2e0!7i16384!8i8192", "Google", "width=800,height=800"); } function closeStreetView() { streetview.close(); } </script> </body> </html>
about 4 years ago · Santiago Trujillo
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!