开发者

how to show page on the parent of the iframe

开发者 https://www.devze.com 2023-01-01 23:14 出处:网络
index.html is : <iframe src=\"/changeDataAndBack\"></iframe> but the html file return back is show in the iframe ,

index.html is :

<iframe src="/changeDataAndBack"></iframe>

but the html file return back is show in the iframe ,

how to show page on the parent of the iframe

thanks

updated:

i changeed to this,but nothing happend :

<开发者_运维知识库;iframe src="/_openid/login?continue=/" target="_top"></iframe>


Targets apply to links, not frames.

<a href="..." target="_top">

If you want to redirect, do it server side.


it is ok now ,i add target="_parent" to iframe page :

<form class="openid" method="post" action="{{login_url}}" target="_parent"> 
0

精彩评论

暂无评论...
验证码 换一张
取 消