在一个窗口中弹出另一个窗口

在一个窗口中弹出另一个窗口

<%@ page contentType="text/html; charset=UTF-8" %>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title></title>

 

<script language="javascript">   

var s = window.open("main!view.c","W"+new Date().getMilliseconds(),"fullscreen=no,directories=no,status=yes,toolbar=no,menubar=no,location=no,titlebar=no,resizable=yes,width="+screen.availWidth+",height="+(screen.availHeight-30)+",top=0,left=0");   

window.opener=null;

window.close();

if(!s) {

  alert("您的浏览器启动了禁止弹出窗口的功能,运行本系统需关闭此功能!");

}else{

//alert('s == window?' + (window.opener == window) + "  window == window.opener ? " + (window == window.opener));

if(s != window){

window.opener=null;

window.close();

window.parent.close();

}

}  

</script>

 

</head>

 

你可能感兴趣的:(window,opener)