0
ウェブサイトのリダイレクトページwindow.location.href
を使用しています。そのトラフィックはすべてiframe
のトラフィックでも問題ありません。iFrameの内部からどのようにリダイレクトできますか?
<script type="text/javascript">
window.location.href="http://newUrlLocation.com";
</script>
しかし、私はtop.location.href
を使用する場合には、iframe
内側からリダイレクトされません。
<script type="text/javascript">
top.location.href="http://newUrlLocation.com";
</script>
いずれかが私を助けてください、私はiframe
可能な複製:http://stackoverflow.com/a/3193193/298240 – TMB
[iframeアクションからの親ウィンドウのリダイレクト]の可能な複製(http://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action) – TMB