I want to call a funtion which needs to be invoked when the browser window is closed. The Actual page is a frame contained one.How can we do that using Javascript or vbscript in client side?