子窗口可以重写父窗口的location.href,
     try{
            if(window.location.href != parent.window.location.href){parent.window.location.href = window.location.href}
        }catch(e){
            parent.window.location.href = window.location.href    ··
        }
        try{
            parent.window.location.href
        }catch(e){
            parent.window.location.href = window.location.href
        }
原文:http://www.cnblogs.com/jczxq/p/6547608.html