如题!

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>test</title>
        <script type="text/javascript">
            function showdialog(){
                var win=window.showModalDialog("photo3.html");
                clickEvent();
            }
            function clickEvent(){
                alert(1);
            }
        </script>
    </head>
    <body>  
    <input type="button" onclick="showdialog();"value="showdialog">
    <input type="button" onclick="clickEvent();"value="click">
    </body>
    </html>
      

  2.   


    <a href='#' onClick=\"window.showModalDialog('test.aspx','', 'scroll:auto; dialogWidth:700px; dialogHeight:350px;scroll:yes;help:0;');return true;\">测试</a>";
    我的打开窗口是在后台写的,请问我应该怎样来在子窗口关闭时,触发父窗口按钮 onclick 事件呢
      

  3.   

    <a href='#' onClick=\"window.showModalDialog('test.aspx','', 'scroll:auto; dialogWidth:700px; dialogHeight:350px;scroll:yes;help:0;');aa();\">测试</a>";
    aa() 为你的onclik时间方法 弹出模态出口会等模态窗口执行结束返回值后,才会执行aa()