parent.location.href="http://www.sohu.com"

解决方案 »

  1.   

    window.top.location=''
    window.parent.location=''
      

  2.   

    才发现我原来的方法也是可以改变url的,
    但是如果这样就达不到想要的效果parent.location.href = strUrl;
    parent.location.reload();父窗体不会按照我指定的url刷新,
    但是如果在两个语句的中间加上:
    alert(parent.location.href);
    就可以。
    请问有什么别的方法可以达到我要的效果吗?
    不要什么alert
      

  3.   

    parent.location.href = strUrl;
    parent.location.reload();why are you used the second program?parent.location.reload();if you use the segment, the browse will be refresh, you already use the first segment to assign a url, you have not need to use the parent.location.reload();you say why you add the alert(...); can contentment your need, that because it can interval time, browse is refreshed first.and you don't use the alert, the browse have not time to refresh the cache, so it not load you contentment url.understand ,okay?!
      

  4.   

    lou shang de , where are you from?