M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

document.addEventListener or window.addEventListener

hi,

Just wanted to make some sense of the

document.addEventListener or window.addEventListener

So I guess when I were to add an event listener in a JS file I would use
document.addEventListener and when I add an event listener from the screen / page builder events I should use window.addEventListener

Just curious as I wanted to know if there is anything I am missing :-)

Thanks,
M&M

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

document.addEventListener or window.addEventListener

hi,

Ok i found my answer here ",)

http://stackoverflow.com/questions/12...

Cheers,
M&M

Return to “Issues”