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>

function Tango_exit()

{

if(Tango_agent!=null)

Tango_agent.exitJS();

}

</script>

</body>