Use addEventListener, incase window is shared between iframe and parent