add options 看看有什么问题!
>>>>test.html<<<<
------------------------------------------------------
<form name = "aa">
<select name = "lala" id = "kj"><option value = "dsf">dsf</option></select>
<input name = "sdfsdg" value = "sfd" type = "button" onclick = "df()">
</form>
<script language="javascript">
function df(){
window.open( "ss.html" );
}
</script>
-------------------------------------------------------------------------
>>>ss.html<<<<
-------------------------------------------------------------------------
<input name = "sjdf" value = "dg" type = "button" onclick = "kl()">
<script language= "javascript">
function kl(){
var opt=window.opener.document.createElement("option");
opt.value="sda";
opt.text="sda";
window.opener.document.kj.add(opt);
}
</script>
--------------------------------------------------------------------------
为什么不能添加内容到select 里面?