javascript - How to get iFrame load event using jQuery -
just clear might duplication requirement different , have did lot of research on unable it. here question now: have scenraio in 1 of page, iframe being loaded, on iframe need bind click event using jquery, have tried below code:
$j('.ms-dlgframe').load(function(){ $j('.ms-dlgframe').contents().find('a [title="browse"]').bind('click', function(){ console.log('frame loaded'); settimeout(function(){ console.log('function loaded after timerout'); $j('.ms-dlgframe').each(function(){ $j(this).contents().find('#resultcontent').css('height','200px'); $j(this).contents().find('#metadatatreecontroltreesearch').css('height','200px'); }); },5000); }); });
but there no luck. not click event fired. tried lot of tricks achieve did not work me. on how bind click event of iframe element using jquery appreciated.
Comments
Post a Comment