step1. Open the new window with window.open method.