Home  >  Article  >  Web Front-end  >  接收键盘指令的脚本_JavaScript

接收键盘指令的脚本_JavaScript

WBOY
WBOYOriginal
2016-05-16 19:28:53865browse

按A就会跳转到地图名片的网页,请按A

 

onkeydown="javascript:onenter();"

function onenter(){
 if(event.keyCode==13){
alert("回车");
}
}

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