iframe框架中用js改变父级Url

   <script type="text/javascript">
        var path = window.location.href;//当前也面的跳转
        var topPath = top.window.location.href;//最外层也面的跳转
        if (path != topPath)
        {
            top.window.location.href = window.location.href;
        }
    </script>

posted @ 2016-05-31 15:35  方金  阅读(1450)  评论(0编辑  收藏  举报