I want a function in Javascript which I want to call in Unload event of every ASP page. The function should redirect to another page ([login to view URL]) only if the user clicks on the "X" on the right corner of the IE browser. It should not do the redirect if I reload the page or go to any other page.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
## Platform
Javascript,ASP,HTML Webserver : IIS 5.0