请教:关于关闭IE浏览器窗口的问题!
大家都知道用:
<object classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0>
</object>
可以不弹出提示框而直接关闭IE的窗口,而我的页在5.5以上(包括5.5)时可以正常运行,而在5.5以下时却弹出“不支持些命令”的提示框!现在正一头雾水,而且急用!也不知道是不是因为IE版本的问题还是语法上有问题,现请高手指点!
代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>index</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=JavaScript>
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</SCRIPT>
<META content="MSHTML 5.50.4134.100" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0"
marginwidth="0"><body style="overflow-x:hidden;overflow-y:hidden">
<object classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0>
</object>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0><!-- fwtable fwsrc="Untitled" fwbase="index.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<TBODY>
<TR>
<TD vAlign=top align=left width=790 background=index/index_r1_c2.gif
height=376 ><IMG height=376
src="index/index_r1_c1.gif" width=754 useMap=#index_r1_c1Map border=0
name=index_r1_c1 ></TD>
<TD width=21 background=index/index_r1_c2.gif
> </TD>
</TR>
<TR>
<TD width=790 background=index/index_r2_c1.gif
> </TD>
<TD width=21 background=index/index_r2_c2.gif
> </TD>
</TR></TBODY></TABLE>
<MAP
name=index_r1_c1Map>
<AREA shape=RECT coords=447,282,503,333 href="#" onclick="MM_openBrWindow('dh.htm','','fullscreen=yes');document.all.WebBrowser.ExecWB(45,1)" >
<AREA
shape=RECT coords=523,281,578,333 href="#"
onclick="MM_openBrWindow('index/kcjj.htm','','width=471,height=384')">
<area shape="rect" coords="27,11,212,29" href="#" onClick="MM_openBrWindow('index/kfdw.htm','','width=471,height=384')">
<AREA
shape=RECT coords=601,282,656,333 href="#"
onclick="MM_openBrWindow('index/xxmb.htm','','width=471,height=384')">
<AREA
shape=RECT coords=677,282,731,333
href="#"
onclick="MM_openBrWindow('index/help.htm','','width=471,height=384')">
</MAP></BODY></HTML>