我想打开一个不存在的弹出窗口。如果将其最小化,我希望使用同一命令来最大化先前打开的窗口。到目前为止,这是我的代码
<script type="text/javascript">
function newPopup(url) {
if(popup_name.exists){
maximize(popup_name);
}
else{
popupWindow = window.open(url, 'popup_name','height=' + screen.height + ',width=' + screen.width + ',fullscreen=yes,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes')
}
}
</script>