【发布时间】:2012-12-05 09:29:59
【问题描述】:
我想在 iframe 中托管 yahoo open-id 登录。但是,一旦 yahoo 页面加载,它就会执行以下 javascript:
<script type="text/javascript">if(top == self)
{ document.write("") } else
{ top.location.href = "http://www.yahoo.com" }</script>
换句话说,它重定向整个页面(不仅仅是 iframe)。我怎样才能防止这种重定向(除了所有法律问题!)?
【问题讨论】:
标签: javascript html iframe openid