J'essaye de vérifier si une iframe s'est chargée après que l'utilisateur clique sur un bouton.
j'ai
$('#MainPopupIframe').load(function(){
console.log('load the iframe')
//the console won't show anything even if the iframe is loaded.
})
HTML
<button id='click'>click me</button>
//the iframe is created after the user clicks the button.
<iframe id='MainPopupIframe' src='http://...' />...</iframe>
Aucune suggestion?
Au fait, mon iframe est créé dynamiquement. Il ne se charge pas avec le chargement initial de la page.