Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to add a onbeforeunload event?

Alistair LaingMay 7 2009 — edited May 7 2009
Hi

I know APEX has a built JS function called addLoadEvent() which basically appends another js function to an existing onload event which maybe created from the template.

My question is whether there is a function that appends js functions to an existing onBeforeUnload event? If not how could I go about it? I would think that I would need to somehow search the text between the < and > of the body tag for any onbeforeunload and if there was already on then just to add it to the end.

In my template I have defined an onBeforeUnload event within the body tag which works perfectly however if you have another page that has a onBeforeUnload event in the HTML region it just simply ignores the pages HTML regions onBeforeUnload event.

Just need some help with this.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2009
Added on May 7 2009
7 comments
1,118 views