added an event

do i add to window or document??