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
There are significant differences between centos7...
Table of contents Discover: Application of displa...
The effect to be achieved is: fixed zoom in twice...
I have been playing around with charts for a whil...
MYSQL is case sensitive Seeing the words is belie...
When I created a Docker container today, I accide...
This article shares the specific code of jQuery t...
Table of contents The significance of standard co...
Table of contents 1. Enter a value and return its...
The full name of Blog should be Web log, which me...
Recently, there have been many database-related o...
First download the compressed version of mysql, t...
CSS scroll bar style modification code .scroll::-...
Because frameset and body are on the same level, y...
Related articles: Beginners learn some HTML tags ...