一个页面内嵌iframe
<div class="page1">
<iframe id="centinel_authenticate_iframe" frameborder="0" border="0" src="page2"></iframe>
</div>
page2
<form name="validation_form" id="validation_form" action="其它页面" method="post"> <fieldset> <input type="hidden" name="PaReq" value="<?php echo $this->getPaReq()?>" /> <input type="hidden" name="TermUrl" value="回调URL" /> <input type="hidden" name="MD" value="<?php echo $this->getMd()?>" /> </fieldset> </form> <script type="text/javascript"> //<![CDATA[ window.onload = function(){ document.getElementById('validation_form').submit(); }; //]]> </script>
///
page2 submit后,返回的数据会自动填充到iframe中,且page2中的信息不存在了