2016-02-11 32 views

回答

3

你可以这样做以下

var windowName = 'userConsole'; 
var popUp = window.open('/popup-page.php', windowName, 'width=1000, height=700, left=24, top=24, scrollbars, resizable'); 
if (popUp == null || typeof(popUp)=='undefined') { 
    alert('Please disable your pop-up blocker and click the "Open" link again.'); 
} 
else { 
    popUp.focus(); 
} 

Taken from this link. not tested

相关问题