I have a webpage designed for mobile phones that includes an iframe with links that open on the parent target.
In Safari on iOS 5.0.1, when the user clicks the link, then uses the back button to return to the page, javascript stops executing in the iframe.
A simple demonstration to illustrate the problem:
Click the link, confirm the notification and use the "Back" button. The second time you click the link, a warning will not appear.
index.html
<html> <body> <iframe src="iframe.html"></iframe> </body> </html>
iframe.html:
<html> <body> <a target="_parent" onclick="alert('Click')" href="http://www.google.com"> Link </a> </body> </html>
I'm running out of ideas about what might be causing this. Does anyone run up to this?
mikgra
source share