Comments by "Vaisakh K M" (@vaisakhkm783) on "" video.
-
if the window is center, div is center
so open a new popup window in center of the screen with div in it
function createPopupWin(pageURL, pageTitle,
popupWinWidth, popupWinHeight) {
let left = (screen.width - popupWinWidth) / 2;
let top = (screen.height - popupWinHeight) / 4;
let myWindow = window.open(pageURL, pageTitle,
'resizable=yes, width=' + popupWinWidth
+ ', height=' + popupWinHeight + ', top='
+ top + ', left=' + left);
}
2
-
1
-
1
-
1