The onClose Property

The onClose property is similar to the onShow property except that the specified function is called when the container is being closed. For example:

function OnClose(theContainer)

{

writeln("Hi, " + theContainer.name + " has terrible news ...");

}

 

function OnLoad(theContainer)

{

theContainer.onClose = OnClose;

}