Home > Web Front-end > JS Tutorial > When there is only one text on the page, the solution to automatic submission by pressing Enter_Form special effects

When there is only one text on the page, the solution to automatic submission by pressing Enter_Form special effects

WBOY
Release: 2016-05-16 18:21:24
Original
1068 people have browsed it

The simple page html code is as follows:

Copy the code The code is as follows:



test










To fix this, try blocking Silent events, methods such as returning false will not work. Later, I checked on the Internet and found out that this is a default operation of IE (but strangely, the same situation occurs in Firefox). The solution is simple, just add a text element to the page, which can be hidden.
Related labels:
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