I need to do something similar by intercepting the X button event.
I have a shopping cart in a web site i did.
When the user adds something to the cart (and does not buy it) the available stock level is meant to be decremented. Which it does.. BUT if the user clicks X then that decremented item remains as so, and does not get put back into the available stock....
I tried doing something in the global.asa file in the Onsession_end etc but still no joy as the close of the page was overiding everything....
i tried an onunload thing in the body tag but i needed it to open a new window to do some ASP stuff, but most people now have popupstoppers so that killed that idea. i need to to an asp/javascript thing... a javascript function that is called by the unload event,but asp coding within the javascript function....
|