How to add an onunload event?

For developers using the Construct 2 Javascript SDK

Post » Sat Oct 06, 2012 1:57 am

Hi everyone I am looking to add an onunload event to podes html iframe. I want to be able to stop the iframe from pointing to another url, with the croos domain security issue I can't catch the current url so I would like to be able to put a function in the onunload event for the iframe that just resets the browser back to the intended source. How do I add the event handler function?

Thanks in advance,

Lance
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests