?? listboxaddexample.htm
字號:
<html>
<head>
<title>Listbox Add Example</title>
<script type="text/javascript" src="listutil.js"></script>
<script type="text/javascript">
function addItem() {
var oListbox = document.getElementById("selListbox");
var oTxtName = document.getElementById("txtName");
var oTxtValue = document.getElementById("txtValue");
ListUtil.add(oListbox, oTxtName.value, oTxtValue.value);
}
</script>
</head>
<body>
<form>
<select id="selListbox" size="5">
<option>Original Value</option>
</select><br />
Click the "Add" button to add an item with the following information:<br />
Name: <input type="text" id="txtName" /><br />
Value: <input type="text" id="txtValue" /><br />
<input type="button" value="Add" onclick="addItem()" />
</form>
</body>
<html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -