javascript - Detect when <iframe> parent element changes from hidden to shown -


how can detect when iframe shown hidden element ?

html :

<div style="display:none">  <iframe></iframe> </div> 

so when show <div> jquery via $('div').show();, how can detect , reload iframe ?

ps : detection should happen inside iframe file.

not : $('div').show(function(){//do something}); or ? (now not sure)

$('div').show("slow",function(){   var iframe = $(this).find("iframe");    iframe.attr('src', "some_url"); }); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -