Home >Web Front-end >JS Tutorial >Press the Enter key to point to a function code at the next position_javascript skills

Press the Enter key to point to a function code at the next position_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:56:041050browse
Copy code The code is as follows:

function tofocus(itemname) //Press Enter to set the next position
                                                                                                                   if(window .event.keyCode==13){tofocus('nextformname')}Extract the next control name

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