Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

284
Vistas
URL in new browser window does not show any controls

I am trying to open a URL in a new window. The URL is opened in a new window but without any Menu and navigation controls.

JS Code to open URL in new Window

URL opened in new TAB

JSFiddle: https://jsfiddle.net/Sahil_Gupta/nfuehqv1/2/

I am using JAVA and ZK in backend and using Script to run the code as:

    Script jsScriptInitializer = new Script();
    String js = "window.open('https://www.google.com', '_blank', 'location=no,scrollbars=yes,toolbar=yes,menubar=yes,resizable=yes');";     
    jsScriptInitializer.setContent(js);
    jsScriptInitializer.setDefer(true);
    jsScriptInitializer.setParent(event.getTarget().getParent().getParent());

I need all the navigation and menu controls as usual when I open a URL in another window. How can I achieve this ?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Your code will work as desired in browsers other than Chrome. There has been an ongoing bug in Chrome which has turned into a feature request. You can read about it at: https://bugs.chromium.org/p/chromium/issues/detail?id=82522

As of Jan 2022, there is still no way to open a Seperate window with the standard toolbars. However, if you can accept the new window being in the form of a tab rather than a separate window, simply eliminating the third argument will open as a fully featured tab.

// open a new tab
window.open('https://www.google.com', '_blank'); 
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda