Home > Web Front-end > HTML Tutorial > 在HTML中如何为一个按钮设置快捷键为ENTER_html/css_WEB-ITnose

在HTML中如何为一个按钮设置快捷键为ENTER_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:55:14
Original
2453 people have browsed it


    


回复讨论(解决方案)

document.onkeydown = function(e){	if((e||event).keyCode==13)		next();};
Copy after login

OK了,谢谢啦

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