<script>
window.close();
var target="http://www.kstv.com.cn/myksmap/index1.htm"
newwindow=window.open("","","toolbar=no, menubar=no, scrollbars=no, resizable=no,status=no")
if (document.all){
newwindow.moveTo(0,0)
newwindow.resizeTo(screen.width,screen.height)
}
newwindow.location=target</SCRIPT>
</html>
window.close();
var target="http://www.kstv.com.cn/myksmap/index1.htm"
newwindow=window.open("","","toolbar=no, menubar=no, scrollbars=no, resizable=no,status=no")
if (document.all){
newwindow.moveTo(0,0)
newwindow.resizeTo(screen.width,screen.height)
}
newwindow.location=target</SCRIPT>
</html>
在newwindow里加
window.opener.opener=null
window.opener.close()
<object id=hh1 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Minimize"></object>
<object id=hh2 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Maximize"></object>
<OBJECT id=hh3 classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM NAME="Command" VALUE="Close"></OBJECT> <input type=button value=最小化 onclick=hh1.Click()>
<input type=button value=最大化 onclick=hh2.Click()>
<input type=button value=关闭 onclick=hh3.Click()>
本例适用于IE
var target="http://www.kstv.com.cn/myksmap/index1.htm"
newwindow=window.open("","","toolbar=no, menubar=no, scrollbars=no, resizable=no,status=no")
if (document.all){
newwindow.moveTo(0,0)
newwindow.resizeTo(screen.width,screen.height)
}
newwindow.location=target
window.opener=null
window.close()
</SCRIPT>
</html>