How to set Popup child window center of parent window for different browsers
Please check the below code. Tried below code for child popup center.
code
var new_window;
function winOpen(){
width = window.innerWidth - 100;
height = window.innerHeight - 120;
var top = (screen.height - window.innerHeight) - 10;
var left = 100 / 3;
new_window=window.open('https://www.google.com',"_blank","toolbar=0, help:no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no,width=" + width + ", height=" + height + ",top=" + top + ",left=" + left + "");
}
code