<body onkeydown="alert(event.keyCode)">
按键盘看结果
8

解决方案 »

  1.   

    <SCRIPT LANGUAGE=javascript>
    function ExitChat()
    {
    aa=window.open("exit.asp","aa","top=0,left=0,width=10,height=10")
    aa.moveTo(-200,-200)
    }</SCRIPT>
    <head></head>
      
     <frameset rows="*,60" Frameborder=False border=0 framespacing=0 onunload="javascript:ExitChat()"><frameset cols="*,118,0" Frameborder=0 border=0 framespacing=0>
    <frameset rows="0,*" frameborder=0 border=0 framespacing=0>
    <frame name="Top" src="Top.Asp" marginwidth=0 marginheight=0 scrolling="no" target="_self">
    <frame name="ShowSays" src="about:blank" scrolling="auto" marginwidth=0 marginheight=0>
    </frameset>-->
    <frame name="List" src="List.Asp" scrolling="auto" marginwidth=0 marginheight=0 noresize target="_self">

    <frame name="Say2" src="Look.Asp" scrolling="no" marginwidth=0 marginheight=0 noresize>
    </frameset> <frame name="Say" src="Say.Asp" marginwidth=0 marginheight=0 scrolling="no" noresize target="_self">
     
    <noframes>
      

  2.   

    <frameset rows="*,60" Frameborder=False border=0 framespacing=0 onbeforeunload="javascript:ExitChat()">