可以:
//main.htm:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<script>
nw=window.open("U2.htm");
</script>
<table width="711" border="1" align="center" cellpadding="0" cellspacing="0" id="tb">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
//u2.htm:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<input type="button" value="关闭窗口" onClick="opener.document.all.tb.insertRow().insertCell().innerText=' ';window.close();">
<script>
</script>
</body>
</html>
//main.htm:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<script>
nw=window.open("U2.htm");
</script>
<table width="711" border="1" align="center" cellpadding="0" cellspacing="0" id="tb">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
//u2.htm:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<input type="button" value="关闭窗口" onClick="opener.document.all.tb.insertRow().insertCell().innerText=' ';window.close();">
<script>
</script>
</body>
</html>
因为可以追加许多行,每一行显示2个名字,也应该保存2个隐藏的code,
<tr><td colspan=2>一览表(如果input不要显示,将type=text改为type=hidden即可) <a href=# onclick=javascript:window.open('s6.htm');>查询</a></td></tr>
</table>s6.htm名称:<select name=name>
<option value=111>111</option>
<option value=222>222</option>
<option value=333>333</option>
<option value=444>444</option>
</select>
代码:<select name=code>
<option value=aaa>aaa</option>
<option value=bbb>bbb</option>
<option value=ccc>ccc</option>
<option value=ddd>ddd</option>
</select>
<input type=button name=button value='确定' onclick=javascript:addNew();>
<script>
var i=0,arr=new Array('#F0F0F0','#FFFFFF');
function addNew(){
tr=window.opener.document.all.t1.insertRow();
tr.style.backgroundColor=arr[i%2];
tr.insertCell().innerText=document.all.name.value;
tr.insertCell().innerHTML='<input type=text name=code'+i+' value='+document.all.code.value+'>'
}
</script>
sakura169(〖一诺轻天下〗) 我这是刷新一个table表,子画面追加的表的各行都没有拉,有没有什么办法
让它还有阿
<script>
opener.location.reload()
</script>
sorry,我不是很看得懂你的需求,写清楚一点,我想我还是可以写出一个例子的PS:对于浏览器有没有什么要求,因为我平时都只是在高版本的IE下面写程序