//
Default.js
function OpenPage(URL)
... {
var wins=window.open(URL,"test","scrollbars=yes,resizable=yes,toolbar=no,status=yes");
if(wins==null)
...{
window.location=URL;
}
else
...{
window.opener=null;
window.close();
}
}
function Maxsize(URL)
... {
max.Click();
window.location=URL;
}
function OpenPage(URL)
... {
var wins=window.open(URL,"test","scrollbars=yes,resizable=yes,toolbar=no,status=yes");
if(wins==null)
...{
window.location=URL;
}
else
...{
window.opener=null;
window.close();
}
}
function Maxsize(URL)
... {
max.Click();
window.location=URL;
}
<!--
Default.html
-->
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head >
< title > 测试程式 </ title >
< script type ="text/javascript" language ="javascript" src ="Default.js" > ...
</ script >
</ head >
< body onload ="OpenPage('index.html');" >
</ body >
</ html >
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head >
< title > 测试程式 </ title >
< script type ="text/javascript" language ="javascript" src ="Default.js" > ...
</ script >
</ head >
< body onload ="OpenPage('index.html');" >
</ body >
</ html >
<!--
index.html
-->
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head >
< title > 最大化页面 </ title >
< object id ="max" classid ="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11" >
< param name ="Command" value ="Maximize" />
</ object >
< script type ="text/javascript" language ="javascript" src ="Default.js" > ...
</ script >
</ head >
< body onload ="Maxsize('http://blog.csdn.net/wkjs/archive/2007/10/22/1836862.aspx');" >
</ body >
</ html >
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head >
< title > 最大化页面 </ title >
< object id ="max" classid ="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11" >
< param name ="Command" value ="Maximize" />
</ object >
< script type ="text/javascript" language ="javascript" src ="Default.js" > ...
</ script >
</ head >
< body onload ="Maxsize('http://blog.csdn.net/wkjs/archive/2007/10/22/1836862.aspx');" >
</ body >
</ html >