How to use iframe to open and close a specified page

Source: Internet
Author: User
How to use iframe to open and close the specified page, ladies and gentlemen, I have two pages, one is 1.php, and the other is the login registration page, login. php. 1. php content: & nbsp; & lt; body & gt; & nbsp; & lt; table & nbsp; & gt; & nbsp; & lt; tr & gt; & nbsp; & lt; td & nbsp; height: how to open and close a specified page through iframe
Dear friends, I have two pages: 1.php and login. php. 1. php content:




Login





I want to achieve this: 1. after logging on to 1.php, login. PHP is displayed in the middle of the screen. if you do not click log on, login. php is not displayed.
2. after logging on to or registering for a login. php logon, the framework is automatically disabled, and 1.php before login. PHP is displayed, and 1.php is refreshed.

I have been studying it for a few days, but I still have trouble. please help me! Thank you!
------ Solution ----------------------
Output after login. PHP operation is complete
Script parent. location. reload () <. script>
You can refresh 1.php.
Login. PHP will disappear with the refreshing of 1.php.
------ Solution ----------------------
Parent. location. herf? This sentence is useless (and href is not herf ...)
Is it necessary to refresh the page. Replace two places with parent. location. reload ().
Note that reload should be added with two parentheses

If it doesn't work, we recommend that you read jquery's ajax to implement this function. The form is too inflexible.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.