Posted on: 9/14/2012 1:37:24 AM | Views : 307

I've got a snippet of js-code that can check rather reliably if an iframe has been loaded.
// Browsers: IE if (navigator.userAgent.indexOf("MSIE") > -1 && !window.opera) { theIframe.onreadystatechange = function () { if (theIframe.readyState == "complete") { alert("Iframe is now loaded. IE-browser"); } }; } // Browsers: Moz, Chrome, Safari, Opera 9+ else { theIframe.onload = function () { alert("Iframe is now loaded. Non IE-browsers."); } } Problem is I can't wrap my head around how I would convert the condition so that it checks if the iframe has NOT been loaded. Granted it's getting late, but I just can't see it. Please lend me a hand, somebody.
...

Go to the complete details ...