Click to See Complete Forum and Search --> : Attaching an event to the closing of the browser


david_cohoon
July 2nd, 2001, 05:56 PM
I'm having trouble finding an event that fires when a browser window is closed. I see tons of pages on the net that popup another window on the close of the first one. Does anyone have an idea on how to attach to an event when the browser closes?

pmmbala
July 6th, 2001, 01:56 AM
i think it'll work..


SCRIPT LANGUAGE=javascript>


function window_onunload() {

docoument.open("test.asp")

}


/SCRIPT>

pmmbala_old
July 6th, 2001, 01:56 AM
i think it'll work..


SCRIPT LANGUAGE=javascript>


function window_onunload() {

docoument.open("test.asp")

}


/SCRIPT>

Joe Keller
July 10th, 2001, 11:25 AM
Untitled Document










This is code automatically generated by dreamweaver.
Works well for me.

Joe Keller
July 10th, 2001, 11:30 AM
ok.. the HTML formatting messed me up.. lets try this.

html>
head>
title>Untitled Document/title>
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
script language="JavaScript">
!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i
/script>
/head>

body bgcolor="#FFFFFF" text="#000000" onUnload="MM_goToURL('parent','blah');return document.MM_returnValue">
/body>
/html>