Article

From:
To:
Bas Gooijen
Subject:
Re: Javascript on closing browser window
Newsgroup:
atozedsoftware.intraweb

Re: Javascript on closing browser window

>
> > (of course). How do I get my function call in this onunload or IWCLRelease
> > function ?
>
> use the OnBeforeUnload event
>
> Bas
>

I did. The problem is my application has multiple forms, so every time it
switches to another form the onBeforeUnload is triggered. That would not be
a problem if this routine didn't insist on asking a question to the user,
even when I am sure there is no reason for panic. I could reset the
onBeforeUnload just before switching to a different form, but it keeps
haunting me how I could get into the onunload. The onBeforeUnload is not
supported by all browsers; the onunload is.

I tried several things at this point :
I did use the javascript and extraheader properties of a form to change the onunload I did try to use the onload of a button or other object with scriptevents.to change the onunload I did try the onchange and onclick (triggered after rendering), but even then it is not possible to change the onunload of the form I did try what happened when I used the onclick scriptevent of a button to change the onunload of the form by simply clicking the button. It works. Problem is I cannot force a user to press a button before closing the browser window.
Thanks for trying to help.
Fahv
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Thu, 28 Mar 2024 15:18:48 UTC
Copyright © 2009-2024
HREF Tools Corp.