Method 1: Submit via the submit button <!DOCTYPE html> <html> <head> <title>Submit via the submit button</title> <meta charset="UTF-8"/> </head> <body> <form action="" method="get" id="form1"> <input type="text" name="username"></input> <input type="submit" value="Submit" /> </form> </body> </html> Method 2: Submit via a normal button <!DOCTYPE html> <html> <head> <title>Submit via a regular button</title> <meta charset="UTF-8"/> </head> <body> <form action="" method="get" id="form1"> <input type="text" name="username"></input> <input type="button" value="ok" name="sb" onclick="submit1();"> </form> <script type="text/javascript"> function submit1() { var form1 = document.getElementById("form1"); form1.action = " bjpowernode.html"; form1.submit(); } </script> </body> </html> Method 3: Submit via hyperlink <!DOCTYPE html> <html> <head> <title>Submit via hyperlink</title> <meta charset="UTF-8"/> </head> <body> <a href="bjpowernode.html?username=张三">Submit via hyperlink</a> </body> </html> |
<<: How to retrieve password for mysql 8.0.22 on Mac
>>: Vue implements websocket customer service chat function
The utf8mb4 encoding is a superset of the utf8 en...
Preface Sometimes file copies amount to a huge wa...
Table of contents Overview 1. Define store.js 2. ...
Table of contents 1. What is JavaScript? 2. What ...
Preface When we forget the MySQL database passwor...
Preface Arrays are a special kind of object. Ther...
Table of contents MySQL's current_timestamp p...
I used ECharts when doing a project before. Today...
Update: Recently, it was discovered that the serv...
Table of contents Written in front 1. Ngixn image...
Overview: Oracle scott user has four tables, whic...
The installation information on the Internet is u...
This article shares the specific code for the WeC...
Specify in CSS style file #class td /*Set the tab...
1. Property List Copy code The code is as follows:...