本帖最后由 许庭洲 于 2013-9-3 14:32 编辑
1. ondblclick(双击);
2.例如:
<HEAD>
<SCRIPT>
function addItem()
{
sNewItem = new Option(txtEnter.value)
selList.add(sNewItem);
}
</SCRIPT>
</HEAD>
<BODY>
<P>Enter text and then double-click in the text box to add text to the list box.
<INPUT TYPE=text NAME=txtEnter VALUE="Enter_text">
<SELECT NAME=selList SIZE=5>
</SELECT>
</BODY>
|