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

202
Vistas
javascript window.open() method still open in new tab while user hold the ctrl button

I am using the following code to open the question paper in popup window and it's working fine but when user hold the ctrl button and click on the start button it still open in new tab i am using the following code

$(document).ready(function(){
        $('#start').on('click', function(){
     
            window.open ('webURL',"mywindow", "width="+screen.availWidth+",height="+screen.availHeight, "status=1,toolbar=0");
        });
    });
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Check the event object's ctrlKey property.

    $(document).ready(function(){
        $('#start').on('click', function(event){
            if(event.ctrlKey)
               window.open ('webURL',"mywindow", "width="+screen.availWidth+",height="+screen.availHeight+ ",status");
        });
    });
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