PopUnder Window

javascript India
  • 18 years ago

    Hi friends,
               
             I have a doubt, as usual...
             I need code in JavaScript/VBScript  for the situation like as below.
         
             When I click the cross button/close button of browser instance, a pop window should come, and the browser should be closed.  


              Please send me the code at your eraliest possible.
               
              Vishal

  • 18 years ago

    The window.onUnload event fires when you close the browser window or navigate to another page; you can call the window.open() method inside that event to open a new window.


    Please, use this knowledge only for good, never for evil.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“An expert is a man who has made all the mistakes that can be made in a very narrow field” - Niels Bohr