楼上的回答我试过,不行,原因是abc.html页面还未刷新,不存在新数据中的<div id="123456">这个锚点,所以失效无法转到

解决方案 »

  1.   

    top.location.href="abc.html?b=1#123456";
      

  2.   

    再回楼上,top.location.href="abc.html?b=1#123456";
    此方法对添加的第一个数据有效,再添加数据时又失效。难道每添加一个数据都要加一个b=1或c=2等的额外参数吗
      

  3.   

    top.location.href="abc.html?b="+((new Date())*1)+"#123456"; 
      

  4.   


    <input type="button" value="刷新父页面并跳转到指定锚点" onclick="window.opener.location.href=abc.html?#123456'">========================================================
    这样试试.