One case that I have used it in is an intranet context with a timesheet. The main intranet page launches a popup window that contains a simple javascript timer. When the popup is closed it reads it current timer values, reopens itself with it final values in place and writes the data into the db to record the time value.
I'm not sure about using onClose on a main browser window - this opens up some nasty possibilities. I'm pretty sure IE stops this from working by default but if you play around with the IE security zones & setting you should be able to override the default behaviour. Oops - not onClose I meant onUnload. Here's the code I have in the popup window: <body onload="checkOpen();" onunload="checkClose(someParams);"> The checkClose function, just grabs the params and passes them through to another popup script, which hands them on as URL variables to the new window. hth Cheers Mark ------------------ Mark Stanton Technical Director Gruden Pty Ltd Tel: 9956 6388 Mob: 0410 458 201 Fax: 9956 8433 http://www.gruden.com --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
