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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-21 08:55:142494browse


    


回复讨论(解决方案)

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

OK了,谢谢啦

Statement:
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