This is the code I used on my page,
if (window.addEventListener) { window.addEventListener("load", createIframe, false); } else if (window.attachEvent) { window.attachEvent("onload", createIframe); } else { window.onload = createIframe; }
Please explain to me where my createIframe funtion is called ? and what is the difference between addEventListener and attachEvent? and what is the difference between load and load? completely confused to find the difference between addEventLisener with download and attachEvent with onload
source share