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

Let's talk about bitwise operations in React source code in detail

Table of contents Preface Several common bit oper...

A brief discussion on four solutions for Vue single page SEO

Table of contents 1.Nuxt server-side rendering ap...

js to achieve sliding carousel effect

This article shares the specific code of js to ac...

Tutorial on how to quickly deploy clickhouse using docker-compose

ClickHouse is an open source column-oriented DBMS...

VMware Workstation download and installation detailed tutorial

Virtual machines are very convenient testing soft...

Alibaba Cloud Server Ubuntu Configuration Tutorial

Since Alibaba Cloud's import of custom Ubuntu...

MySQL uses limit to implement paging example method

1. Basic implementation of limit In general, the ...

js array fill() filling method

Table of contents 1. fill() syntax 2. Use of fill...

HTML sample code for implementing tab switching

Tab switching is also a common technology in proj...

Detailed explanation of JavaScript program loop structure

Table of contents Select Structure Loop Structure...

Handtrack.js library for real-time monitoring of hand movements (recommended)

【Introduction】: Handtrack.js is a prototype libra...

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

Preface Project release always requires packaging...

The use and difference between vue3 watch and watchEffect

1.watch listener Introducing watch import { ref, ...

HTML5+CSS3 header creation example and update

Last time, we came up with two header layouts, on...