For the next iframe, Safari never calls the onload function and does not display anything in the iframe. All other browsers I tested call onload and display the webpage with a default error.
<html> <body> <iframe src="http://www.asdkjhjhkjhkjhjhjhfhkjhsdflkjahdsjfhasf.com" onload="alert('iframe loaded');"> </iframe> </body> </html>
Why is this happening? If there is no solution to this problem, then I need to find a way to detect if the iframe is not loading.
javascript html safari iframe
functionptr
source share