应该可以的
可能用window.opener.parent.framb.image.onclick()
你试一下

解决方案 »

  1.   

    You can try this!!!--------------frame.htm
    <frameset cols="200,*" frameborder=1>
    <frame src="frameleft.htm" name="left">
    <frame src="frameright.htm" name="right">
    </frameset>--------------frameleft.htm
    <body>
    <script language=JavaScript>
    var mask = 0;
    function triggle(){

    var textval;
    textval = text1.value;
    if( mask == 0){
    if (textval == "set") {
    imgclick();
    mask=1;
    }
    }
    }function imgclick()
    {
    //你希望的动作代码
    alert('我根本没有点击图片');
    }
    </script>
    <input type="submit" onclick="window.open('open.htm','open','height=100, width=200, top=100, left=144,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')" value="open a new window">
    <input type="text" name="text1" onFocus="triggle();" style="width:0;height:0"><br>
    <img src='abc.gif' border=0 width=100 height=100 onclick="imgclick();" name="img1">
    </body>------------frameright.htm
    <body>
    body
    </body>------------open.htm
    <body>
    <script language=JavaScript><!--
    function eventgo()
    {
    opener.text1.value="set";
    opener.text1.focus();
    }
    --></script>
    <input type="submit" onclick="window.close();eventgo();" value="cmd window">
    </body>
      

  2.   

    修改了一点frameleft.htm 的内容!!!!
    --------------frameleft.htm
    <body>
    <script language=JavaScript>
    var mask = 0;
    function reset()
    {
    mask=0;
    }
    function triggle(){

    var textval;
    textval = text1.value;
    if( mask == 0){
    if (textval == "set") {
    imgclick();
    mask=1;
    }
    }
    }function imgclick()
    {
    //你希望的动作代码
    alert('我根本没有点击图片');
    }
    </script>
    <input type="submit" onclick="window.open('open.htm','open','height=100, width=200, top=100, left=144,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no');reset();" value="open a new window">
    <input type="text" name="text1" onFocus="triggle();" style="width:0;height:0"><br>
    <img src='abc.gif' border=0 width=100 height=100 onclick="imgclick();" name="img1">
    </body>
      

  3.   

    在弹出窗口里:
    <body onbeforeunload="opener.parent.A.imgID.click()">
    其中A指A框架的名字(name),imgID指图片的ID
      

  4.   

    在弹出窗口里:
    <button onclick=aa()>关闭</button>
    <scritp>
    function aa(){
    window.opener.parent.frames["A"].imgID.click();
    window.close();
    }
    </script>