Home > Web Front-end > JS Tutorial > body text

Summary of javascript keyboard events Recommended_javascript skills

WBOY
Release: 2016-05-16 18:38:19
Original
1103 people have browsed it

In the form, the shortcut key for submit is enter, and the shortcut key for reset is esc. However, in IE6, safari4, ff3.5, opera10, and chrome, pressing Enter not only triggers the submit event of the form, but also triggers the onclick of the submit button. The order of activation is onclick of the submit button → onsubmit of the form.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!