This is the code i used in my page,
if (window.addEventListener) {
window.addEventListener("load", createIframe, false);
}
else if (window.attachEvent) {
window.attachEvent("onload", createIframe);
}
else {
window.onload = createIframe;
}
Please explain me that where my createIframe funtion get called? and what is the difference between addEventListener and attachEvent? and what is the different between load and onload? totally confused to find difference between addEventLisener with load and attachEvent with onload