event to window.event