Creating load event before load bypasses the popup-blocking.