This version doesn't work, because the window.open call isn't during the event processing.