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:
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.