js pops up new container Two kinds of code
<html xmlns= "http://www.jzread.com/1999/xhtml"
<head>
<meta http-equiv= " Content-type "content=" HTML; charset=gb2312 "/>
<title>js pop-up new container two code </TITLE>
<script language=" javascript "
// Open the Fixed new window
Var open_winobj
function Open_newwindow (url_var,win_name)
{
var win_width=screen.width ;
var win_height=screen.height;
if (open_winobj)
{
open_winobj.close ();
open_winobj=null;
open_winobj=window.open (Url_var,win_name, "width=" + Win_width + ", height=" + Win_height + ", top=0,left=0, Scrollbars=1, Resizable=yes ");
}
else
{
open_winobj=window.open (url_var,win_name, width= "+ Win_width +", height= "+ Win_height +", Top=0,left=0,scrollbars=1, Resizable=yes ");
}
}
Open a new window
function Open_newwin (url_var,win_name)
{
var win_width=screen.width/2;
var win_height=screen.height/2;
window.open (Url_var,win_name, "width=" + Win_width + ", height=" + Win_height + ", Top=0,left=0,scrollbars=1, resizable= Yes ");
}
</script>
</head>
<body>
<a href= "Open a new Window" onclick= javascript:open_newwindow (' http://www.jzread.com ', ' Construction station teaching network '); "target=" _blank "> Open a new Window </a>
<a href= "Open new Window 2" onclick= javascript:open_newwin (' http://www.jzread.com ', ' learning to build a station tutorial '); "target=" _blank "> Open new Window 2 </a>
</body>
</html>