How to add a onbeforeunload event?
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.