TRY:alert(window.opener.document.all.Img1);

解决方案 »

  1.   

    thank you~`
    这个问题能解决么?
    http://community.csdn.net/Expert/topic/3477/3477729.xml?temp=.8885462
      

  2.   

    b.aspx:
    <script>
      alert(document.getElementById("box"));
    </script>
    <DIV id="box" style="Z-INDEX: 102; LEFT: 0px; WIDTH: 380px; POSITION: absolute; TOP: 64px; HEIGHT: 385px" ms_positioning="GridLayout"></DIV>why........alert(document.getElementById("box")) is null??please~~
      

  3.   

    。你没明白我的意思?我的意思是当b页面为新打开的页面时alert(document.all.box)为undefined。box是b页面的控件ID
      

  4.   

    b.aspx:<DIV id="box" style="Z-INDEX: 102; LEFT: 0px; WIDTH: 380px; POSITION: absolute; TOP: 64px; HEIGHT: 385px" ms_positioning="GridLayout"></DIV><script>
      alert(document.getElementById("box"));
    </script>
      

  5.   

    before you call an object, it must have been loaded, so place the scripts below the object