<input id="test" name="test" />BBB.htm<script language="javascript">function myclose(){window.opener.document.getElementById("test").value=document.getElementById('mytest').options[document.getElementById("mytest").selectedIndex ].value;window.close();}</script> <select id="mytest" name="mytest"> <option value="1" selected="selected">text1</option> <option value="2">text2</option> </select><input type="button" onclick="myclose()" />
新闻热点
疑难解答