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

Design Association: Why did you look in the wrong place?

I took the bus to work a few days ago. Based on m...

How to automatically backup mysql remotely under Linux

Preface: Basically, whether it is for our own use...

Nginx configuration 80 port access 8080 and project name address method analysis

Tomcat accesses the project, usually ip + port + ...

Summary of methods for finding and deleting duplicate data in MySQL tables

Sometimes we save a lot of duplicate data in the ...

A brief analysis of the configuration items of the Angular CLI release path

Preface Project release always requires packaging...

Example code for implementing complex table headers in html table

Use HTML to create complex tables. Complex tables...

Several ways to set the expiration time of localStorage

Table of contents Problem Description 1. Basic so...

Tutorial on installing and configuring MySql5.7 in Alibaba Cloud ECS centos6.8

The default MySQL version under the Alibaba Cloud...

Tomcat components illustrate the architectural evolution of a web server

1. Who is tomcat? 2. What can tomcat do? Tomcat i...

How to uninstall MySQL 5.7.19 under Linux

1. Find out whether MySQL was installed before Co...

Detailed steps for building Portainer visual interface with Docker

In order to solve the problem mentioned last time...

Vue implements anchor positioning function

This article example shares the specific code of ...

SystemC environment configuration method under Linux system

The following is the configuration method under c...