Category Covered

How to open pop up window at the centre of a screen

function open_popwin(url) {
         var width = 690;
        var height = 630;
        var bgc = '#ffffff';
        var left = parseInt((screen.availWidth/2) - (width/2));
        var top = parseInt((screen.availHeight/2) - (height/2));
        var windowFeatures = "background=" + bgc + ",width=" + width + ",height=" + height + ",status, resizable, left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
        myWindow = window.open(url, "subWind", windowFeatures);
       }