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

WBOY
Release: 2016-05-16 17:14:02
Original
923 people have browsed it
复制代码 代码如下:


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





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