<HTML>
    <head>
        <script language="javascript">
        /*@cc_on @*/
        /*@if (@_win32 && @_jscript_version>=5)
        function window.onbeforeunload()  //author: meizz
        {
            var b = window.event.clientX > window.meizzCaption.document.body.clientWidth - 20;
            if(b && window.event.clientY < 0 || window.event.altKey)
            {
                window.open("a.htm");
            }
        }
        @end @*/
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
        <meta content="F.R.Huang(meizz梅花雨)//www.meizz.com" name="author">
    </head>
    <frameset id="frameHead" rows="84, *" framespacing="0" border="0" frameborder="0">
        <frame name="meizzCaption" scrolling="no" SRC="Caption.aspx" noresize>
        <frame name="meizzMain" scrolling="no" SRC="main.htm" noresize>
        <noframes>
            <body>
                <h2 align="center">对不起!你的浏览器不支持框架网页</h2>
            </body>
        </noframes>
    </frameset>
</HTML>

解决方案 »

  1.   

    <html>
    <head>
    <title></title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <script language="javascript">
    function openwin(){
    var strfeature="left=200,top=200,height=200,width=200,status,titlebar";
    window.open("p4.htm","winname",strfeature);
    }
    </script>
    </head>
    <body  onunload="openwin()">sdfsfs</body>
    </html>
      

  2.   

    Meizz(梅花雪(新婚蜜月中)) 老大:
    我全文Copy你的代码测试,No problem!
    但我只Copy其中<script></script>内容到我的页面,却实现不了,
    百思不得其解,望指教!注:我的框架页是通过以下得到。
    <html><head>
    <script language=javascript>
    function openkuanjia(){
    window.open("kuanjia.php","index",'Status=no,scrollbars=no,resizable=no');
    }
    </script>
    </head>
    <body>
    <p align="center">
    <a href=# onclick=openkuanjia()>框架页</a>
    </body></html>你的代码我放在kuanjia.php的<head></head>之间。