tryit_view.asp@filename=try_dom_form_reset

来自「W3Schools tutorial..web designing」· ASP@FILENAME=TRY_DOM_FORM_RESET 代码 · 共 23 行

ASP@FILENAME=TRY_DOM_FORM_RESET
23
字号
<html>
<head>
<script type="text/javascript">
function formReset()
{
document.getElementById("myForm").reset();
}
</script>
</head>

<body>
<p>Enter some text in the text fields below, and then press the "Reset" button to reset the form.</p>

<form id="myForm">
Name: <input type="text" size="20"><br />
Age: <input type="text" size="20"><br />
<br />
<input type="button" onclick="formReset()" value="Reset">
</form>
</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?