addEvent(document.getElementById("IFrameGeneric"),"load",function(){ Test() }) addEvent(document.getElementById("IFrameGeneric"),"unload",function(){ Test2() }) function addEvent(object,type,handler){ if(object.addEventListener){ object.addEventListener(type,handler,false); } else{ object.attachEvent("on"+type,handler); } } function Test() { alert("test") } function Test2() { alert("test2") }Can someone confirm that only the load event works? To test, you would need to create a page with an IFrame named IFrameGeneric. Then, have some javascript code that will change document.getElementById("IFrameGeneric").src to something. You will see that an alert test will be shown once the load event completes. But, the documentation says that the onunload event should be supported as well. That one is suppose to kick in once we change the .src value.