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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -