Home  >  Article  >  Web Front-end  >  The effect of js keyboard direction keys to turn the page of articles [commonly used in novel sites and supports firefox]_javascript skills

The effect of js keyboard direction keys to turn the page of articles [commonly used in novel sites and supports firefox]_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:52:041180browse

A small humanized function brings great convenience to users, so if you want to build a similar website, Xia Ke recommends adding it.
Let’s experience this function first:
Press the left arrow key to go to: www.baidu.com
Press the right arrow key to go to: www.google.com
Press the right arrow key to go to: www.google.com Press the Enter key to go to: www.jb51.net
Press ctrl enter and press the Enter key to go to: www.jb51.net
The javascript code to implement this function:

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