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>
自行修改選擇的主題與項目

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 dizzy03 的頭像
    dizzy03

    碎碎念

    dizzy03 發表在 痞客邦 留言(0) 人氣()