你想在a.htm里还是b.htm里,还是c.htm里做这些事儿呢?
要是在a.htm里: window.location="newhtml.htm";
要是在b.htm里: parent.location="newhtml.htm";
要是在c.htm里: parent.parent.location="newhtml.htm";

解决方案 »

  1.   

    你想在a.htm里还是b.htm里,还是c.htm里做这些事儿呢?
    要是在a.htm里: window.location="newhtml.htm";
    要是在b.htm里: parent.location="newhtml.htm";
    要是在c.htm里: parent.parent.location="newhtml.htm";
      

  2.   

    我想在c.htm里面做这些事,你说的方法行不通!!
    怎么没人帮我啊
      

  3.   

    将a.htm的<body>定义一个id="a_htm";在c.htm的<body>里插入<body onUnload="a_htm.location='newhtm.htm';">不清楚你的c.htm是弹出打开的页面还是在iframe里的,如果是前者,则上述可以实现。若是后者把改成onUnload="window.parent.location='newhtm.htm';"
      

  4.   

    window.opener.parent.location="newhtm.htm";
    window.opener=null;
    window.close();
      

  5.   

    zhaoxiaoyang(梅雪香@hisoft) 
    感谢,这个方法可行,结贴