if I have the "src" attributes in IFRAME change is the "onload" Function not executed. It works ONLY when first called.
JavaScript:
function dialog () {
document.getElementById('result').src = "myurl";
}
function loading() {
document.getElementById('loading').style.display = "none";
document.getElementById('result').style.display = "block";
}
HTML:
<div id="loading"><img src="loading.gif"/></div>
<iframe style="display:none;" id="result" onload="loading();" src="myurl"/></iframe>
Thank you!