Contents | Index | Previous | Next
TAgentJS.exitJS() Method
de-register from Tango
Synopsis
Tango_agent.exitJS();
Arguments
None.
Returns
Nothing.
Description
Calling exitJS() de-registers this application from Tango. The function should
only be called from within the onUnload() handler.
Example
A common decency requires that application cleans up after itself by
explicitly exiting Tango when the page is closed.
<body onUnload="Tango_exit()">
<script>
- ar Tango_agent=Packages.webwisdom.tango.TagentJS.createTAgentJS(document);
function Tango_exit()
{
if(Tango_agent!=null)
Tango_agent.exitJS();
}
</script>
</body>