Estoy usando el siguiente código para abrir el cuestionario en la ventana emergente y funciona bien, pero cuando el usuario mantiene presionado el botón Ctrl y hace clic en el botón de inicio, todavía se abre en una nueva pestaña, estoy usando el siguiente código
$(document).ready(function(){ $('#start').on('click', function(){ window.open ('webURL',"mywindow", "width="+screen.availWidth+",height="+screen.availHeight, "status=1,toolbar=0"); }); });Compruebe la propiedad ctrlKey del objeto de event .
$(document).ready(function(){ $('#start').on('click', function(event){ if(event.ctrlKey) window.open ('webURL',"mywindow", "width="+screen.availWidth+",height="+screen.availHeight+ ",status"); }); });