Hi! Try adding a function and attaching it to the window object's onunload property:
<?xml version="1.0" encoding="UTF-8"?> <Module> <ModulePrefs title="onunload event example" /> <Content type="html"><![CDATA[ <script type="text/javascript"> window.onunload = function() { alert('Exiting...'); } </script> ]]></Content> </Module> This simple gadget should show an alert dialog when the user attempts to navigate away from the page or close the browser window. Hope this helps, - Jason On Jan 23, 12:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > Im developing a small application which needs to send > data back to the server when the user quits that application(e.g when > he navigate to another page ).. > > In normal html we can use onUnload inside <body> tag > <BODY onUnload="javascript" > > Can anyone tell me how to implement this in OpenSocial > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Discussion" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---