Presumably you are familiar with the AJAX call, the following is the introduction of an IFRAME Ajax call, the need for friends can refer to the following
1. New a.html Code as follows: <!doctype html> <html> <head> <meta charset= ' Utf-8 ' > <title>iframe Ajax call </title> </head> <body> <form action= ' b.php ' method= ' post ' id= ' target= ' formtarget ' > <input ' text ' type= ' name= ' username ' Placeholder= ' value= '/> <input type= ' Submit ' name= ' value= ' submitted to '/> <span ' msg ' id= span> </form> <iframe src= ' name= ' formtarget ' id= ' formtarget, ' style= ' Display:none ' iframe> </body> </html> 2. The new b.php code is as follows: <?php echo " < script> parent.document.getElementById (' msg '). InnerHTML = ' iframe-style Ajax call succeeded! '; Alert (' you entered: {$_post[' username ']} '); window.settimeout (function () { Parent.window.location.reload (); },3000); </script> "; 3. Visit: http://localhost/ a.html &nbsP