javascript 弹出窗口

    <script language="javascript">
        
function ShowDialog(url) {
            
var iWidth = 500//窗口宽度 
            var iHeight = 580//窗口高度 
            var iTop = (window.screen.height - iHeight) / 2;
            
var iLeft = (window.screen.width - iWidth) / 2;
            window.showModalDialog(url, window, 
"dialogHeight: " + iHeight + "px; dialogWidth: " + iWidth + "px;dialogTop: " + iTop + "; dialogLeft: " + iLeft + "; resizable: no; status:no;scroll:no");
        } 
    
</script>
原文地址:https://www.cnblogs.com/heimirror/p/1407757.html