<iframe id=iframe1 name=question1 width=100% height="500" frameborder=0 scrolling=no src="http://localhost/test1.php" target='_self'></iframe>
因为test1.php页面是不能修改代码的.test1.php里有表单提交的功能.提交后也在test1.php里完成.但是提交后test1.php却强制跳出了iframe.直接跳转成了.http://localhost/test1.php.设置了target为_self也没什么用,因为不能修改test1.php.请问能用什么js来强制test1.php页面在iframe里
因为test1.php页面是不能修改代码的.test1.php里有表单提交的功能.提交后也在test1.php里完成.但是提交后test1.php却强制跳出了iframe.直接跳转成了.http://localhost/test1.php.设置了target为_self也没什么用,因为不能修改test1.php.请问能用什么js来强制test1.php页面在iframe里
如果在同一域名下,可以用JS操作test1.php里的form 使其target为_self,如果不在同一域名下估计很难控制了