After pressing Enter on the webpage, the form is automatically submitted and goes to other pages There is a query form. I originally hoped that the query would only be executed when I clicked the query button. However, when I pressed Enter during the test, it went to other pages. Copy code The code is as follows:<form action="notice.php" method="get"> ... <button type='button' onclick ="search_wj()" class="btn btn-ok">Search</button> </form> Solution: Add an onsubmit="search_wj();return false;" to the form Copy code The code is as follows:<form action="notice.php" onsubmit="search_wj();return false;" method="get"> ... <button type='button' onclick ="search_wj()" class="btn btn-ok">Search</button> </form> |
<<: Implementing WeChat tap animation effect based on CSS3 animation attribute
>>: Explanation on whether to choose paging or loading in interactive design
The before/after pseudo-class is equivalent to in...
When learning kubernetes, we need to practice in ...
Preface The Linux system is controlled by the sys...
In the web pages we make, if we want more people ...
Introduction to Nginx Nginx ("engine x"...
Win10 installs mysql5.7 decompressed version, for...
I recently configured a server using Tencent Clou...
MySQL tuning Explain tool detailed explanation an...
Use the find command to find files larger than a ...
1. First remotely connect to the server 2. Open S...
background A colleague is working on his security...
Effective solution for Ubuntu in virtual machine ...
Introduction to Nginx dynamic and static separati...
1. Introduction The requirement is to obtain the ...
Table of contents Preface 1. Less 2. Import your ...