blurvschangeexample.htm
来自「这是javascript高级程序设计的源码」· HTM 代码 · 共 21 行
HTM
21 行
<html>
<head>
<title>Blur vs. Change Example</title>
</head>
<body>
<p>Type a few characters in the textbox and then tab to the Submit button.
Then, click on the textbox and tab back to the Submit button without
changing the text.</p>
<form method="post" action="javascript:alert('Submitted!')">
<!-- hidden field -->
<input type="hidden" name="hidden1" value="hidden value" />
<!-- textbox that should get focus -->
<input type="text" name="textbox1" value="" onblur="alert('Blur')" onchange="alert('Change')"/>
<!-- submit button -->
<input type="submit" value="Submit Form" />
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?