File: roomchat_unload.html

package info (click to toggle)
webcit 917-dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,164 kB
  • sloc: ansic: 34,213; sh: 4,455; makefile: 346; xml: 91; sed: 9
file content (20 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>End Chat</title>
      <script type="text/javascript" src="prototype.js"></script>
      <script type="text/javascript">
        function do_roomchat_unload() {
          new Ajax.Request(
            '../chat_exit', {
              method: 'get'
            }
          );
        }
      </script>
  </head>
  <body onUnload="do_roomchat_unload();">
   ugly hack to enable an onUnload event
  </body>
</html>