1: JavaScript Static Page Value Transfer URL Article
You can pass the value through the URL. Connect the information to be transferred to the URL.
Post. htm
Advantages: Convenient to obtain values. Can cross domains.
Disadvantages: Value length is limited
2: Cookies for JavaScript Static Page Value Transfer
Cookies are browsers that store a small amount of named data.
It is associated with a specific web page or website Together.
Cookies are used to provide memory to the browser,
so that scripts and server programs can use input data from one page to another page.
Post.htm
Read.htm
Advantages: Can be accessed from any webpage within the same source. The lifetime can be set.
Disadvantages: The value length is limited.
3: JavaScript Static Page Value Transfer Window.open Chapter
There is a relationship between the two windows. The parent window parent.htm opens the child window son.htm
The child window can point to the parent window through window.opener. This allows access to the object of the parent window.
Post.htm
Advantages: It is convenient to obtain values. As long as window.opener points to the parent window, you can access all objects. Not only can you access the value, but you can also access the methods of the parent window. There is no limit to the value length.
Disadvantages: Two The window must have a relationship. It is a window opened using window.open. It cannot cross domains.