jquery - Checking when the content of an iframe has been loaded -
i wanted know possible check when content in iframe loaded.
i have hidden iframe , don't want show until webpage/website inside iframe has loaded.
i tried following, not worked me:
$('iframe').load(function() { ; }); is possible?
this cannot done cross domain, locally.
<iframe src="/amp" id="iframeid"></iframe> document.getelementbyid("iframeid").contentwindow.onload = function(){ alert('loaded'); };
Comments
Post a Comment