close
http://myaudition2005.mysinablog.com/index.php?op=ViewArticle&articleId=1448761
1.表單運用跨視窗傳遞資料
藉由另一個視窗將資料傳回表單並自動關閉視窗
<form name="form1" action="">
<input type="text" name="fruit">
<a href="#" >option</a>
</form>
製作查詢頁面的下拉式選單(另存一個網頁s.html)
<script type="text/javascript">
function choice() {
sel = document.forms[0].elements[0];
opener.document.form1.fruit.value =
sel.options[sel.selectedIndex].text;
self.close();
}
</script>
<form><select >
<option>select</option>
<option>Korean</option>
<option>Japanese</option>
<option>French</option>
</select></form>
自行修改選擇的主題與項目
全站熱搜