在ie6显示正常,ie7和ie8环境下,如何修改js呢,谢谢~<SCRIPT language=JavaScript>
<!--
function openwin(page,size)
{
var newopen=window.open(page,"new","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=200"+size);
newopen.focus();
}
//-->
</SCRIPT>
<href="javascript: openwin('test.html',',')" ">
<!--
function openwin(page,size)
{
var newopen=window.open(page,"new","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=200"+size);
newopen.focus();
}
//-->
</SCRIPT>
<href="javascript: openwin('test.html',',')" ">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title><script type="text/javascript" language="javascript">
function linkShowModalDialog() {
var fanhuizhi = window.showModalDialog("test.html", "", "dialogHeight=200px;dialogWidth=300px;");
document.getElementById("result").innerHTML = "返回值为:" + fanhuizhi;
}
</script></head><body><div align="center"><a href="http://www.sohu.com" target="_blank" onclick="linkShowModalDialog()">链接地址</a></div>
</body>
</html>