Some situations require that a new window is to be displayed dynamically.
This window usually contains an advertisement or information useful to the user. A JavaScript can be used for such a purpose. This article will discuss how to open and close this type of window, as well as how to generate contents in a newly displayed window. The open method is used to generate a new browser window with its own customized characteristics. Replace Specifies how the new window URL will be positioned in the address list in the History object.