Solution to the problem of passing values ​​between html pages

Solution to the problem of passing values ​​between html pages
The first time I used the essay, I felt quite awkward
a.html

Copy code
The code is as follows:

<html>
<head>
<title>demo</title>
<meta name="Author" content="xugang" />
</head>
<body>
<FORM name="frm" METHOD="get" ACTION="b.html" onsubmit="return foo()">
<INPUT TYPE="hidden" id="hid" value="123" name="hid">
<INPUT TYPE="submit" value="Submit">
</FORM>
</body>
</html>

b.html

Copy code
The code is as follows:

<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
document.write(location+"
");
document.write(location.search+"
");
document.write(decodeURIComponent(location.search.substr(location.search.indexOf("=")+1)));
</SCRIPT>
</BODY>
</HTML>

<<:  CSS specification BEM CSS and OOCSS sample code detailed explanation

>>:  Detailed explanation of json file writing format

Recommend

Use Docker to build a Redis master-slave replication cluster

In a cluster with master-slave replication mode, ...

Summary of four ways to introduce CSS (sharing)

1. Inline reference: used directly on the label, ...

js native waterfall flow plug-in production

This article shares the specific code of the js n...

Optimizing query speed of MySQL with tens of millions of data using indexes

1. The role of index Generally speaking, an index...

Detailed explanation of keywords and reserved words in MySQL 5.7

Preface The keywords of MySQL and Oracle are not ...

B2C website user experience detail design reference

Recently, when using Apple.com/Ebay.com/Amazon.co...

Vue encapsulation component tool $attrs, $listeners usage

Table of contents Preface $attrs example: $listen...

MySQL paging analysis principle and efficiency improvement

MySQL paging analysis principle and efficiency im...

Example of how to configure the MySQL database timeout setting

Table of contents Preface 1. JDBC timeout setting...

How to start jar package and run it in the background in Linux

The Linux command to run the jar package is as fo...

Causes and solutions for slow MySQL queries

There are many reasons for slow query speed, the ...