>From: "xyz" <raok@h...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] post data automatically
>Date: Mon, 30 Sep 2002 12:15:25 +0300
>
>Hi!
>
>If user closes window with X button,
>is there any way to post information automatically with onUnload function?
>
>function sendData()
>{
>
>}
>
><body onUnload=sendData()>
><form action="name.cgi">
><input name="mmm" value="2">
></form>
></body>
>
>Thanks,
>Rebane
>
You could try this calling document.forms[0].submit in the event handler but
if it doesn't work try it in the onbeforeunload handler (IE only I think).
(By the way I think your form should have a name. Some browsers need it.)
Joe
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx