>>I am attempting to delete records in the unload event of a window. The deletion works but when the pages finishes I get a GPF.
>>
>>Here's the vbScript
>>
>>
>>Sub Window_OnUnLoad()
>> Window.Navigate "../Catalog/DeleteRecord.Asp"
>>End Sub
>>
>>
>>Dan
>
>Why not simply use a "response.redirect" in your statement? This would cause an error, from what I can tell, because when the window is being closed, it's sent elsewhere, similar to "Get out of the car and drive to the store".
>
>Hugo
Ok. I've isolated the problem. I added a home button and after hittin this button the above works correctly. The problem is that I was exiting IE and then I was getting a GPF. How can I determine that an someone has exited IE and then not run the code.
Dan