IE正常,CHROME无法返回 在网上查了很多,都不行--父窗口
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
function openbm()
{
var returnValue = window.showModalDialog('aa1.htm', 'window', "dialogWidth=300px;dialogHeight=300px;resizable:yes;")
alert(returnValue);
}
</script>
</head><body>
<form name="form1" method="post" action="">
<input type="text" name="Text1" value=""><input type="button" onClick="openbm()">
</form>
</body>
</html>
--AA1。HTM 子窗口
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">function list()
{ window.returnValue = 'dfdsfsdfdsf';
window.close();}</script>
</head><body>
<input type= "text " name= "bb ">
<input type="button" onclick="list()">
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
function openbm()
{
var returnValue = window.showModalDialog('aa1.htm', 'window', "dialogWidth=300px;dialogHeight=300px;resizable:yes;")
alert(returnValue);
}
</script>
</head><body>
<form name="form1" method="post" action="">
<input type="text" name="Text1" value=""><input type="button" onClick="openbm()">
</form>
</body>
</html>
--AA1。HTM 子窗口
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">function list()
{ window.returnValue = 'dfdsfsdfdsf';
window.close();}</script>
</head><body>
<input type= "text " name= "bb ">
<input type="button" onclick="list()">
</body>
</html>
<head>
<title>无标题文档</title>
<script>
function aa(){
if(window.opener != undefined){
//for chrome
window.opener.returnValue = "e123";
}else{
window.returnValue = "e123";
}
window.close();
}
</script>
</head><body>
<input type= "text " name= "bb ">
<input type="button" onclick="aa()">
</body>
</html>