How to open popup window into screen center?

Total Post:341

 2532  View(s)
Rate this:
I'm working on, and i try to open a popup windows into screen middle. what i do?
  1. Post:604

    Re: How to open popup window into screen center?

    use the JavaScript to open popup window in center.

    function popup(pageURL, title, popupWidth, popupHeight)  
            var left = (screen.width / 2) - (popupWidth /  2);
            var top = (screen.height / 2) - (popupHeight / 2);
            var  targetPop =, title, 'toolbar=no, location=no,  directories=no, 
    status=no, menubar=no, scrollbars=YES, resizable=YES,  copyhistory=no, width=' + popupWidth + ', 
    height=' + popupHeight + ', top='  + top + ', left=' + left);

      Modified On Mar-29-2018 05:30:34 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.