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");
});
});
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");
});
});