How to make the front page of the page and
Background CGI pages remain interactive for a long time. Here are two I make in practice
The method used.
Method One: Interact with cookies. Altogether there are three files, respectively:
Index.htm,action.php,main.htm
Principle for foreground page main.htm and backstage action.php through page frame
index.htm, the action.php page width is set to 0, which does not
Impact display. Action.php the information into a cookie, main.htm by reading
Cookies to implement the interaction. In Main.htm, you can also read action.php by re-read
To implement the control of the background CGI program.
Method Two: Directly through Parent.*.* to realize the interaction. Altogether there are three files, respectively:
Index.htm,action.php,main.htm, where the index.htm is the same as the front.
Principle for direct transmission through Parent.rightFrame.test.current_cookie.value
Information.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.