Home >Web Front-end >JS Tutorial >js text box input point and press enter trigger to confirm compatibility with IE, FF, etc._javascript skills

js text box input point and press enter trigger to confirm compatibility with IE, FF, etc._javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 17:14:02960browse
复制代码 代码如下:


<script> <br>function EnterPress(e){ //传入 event <br>var e = e || window.event; <br>if(e.keyCode == 13){ <br>document.getElementById("txtB").focus(); <br>} <br>} <br></script>





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