换种思路:t1.htm<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head><body><select name="s1" id="s1" >
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<a target="_blank" href="t2.htm">New window</a>
<script language="javascript">
function AddOption()
{
var obj = document.getElementById('s1');
alert(obj.options.length);
obj.options.add(new Option("增加-A","AAAAAA"));
alert(obj.options.length);
}
</script>
</body>
</html>t2.htm<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head><body>
<script language="javascript">
var obj = window.opener.AddOption();
</script>
</body>
</html>