Popup windows are widely used for the advertisement, to exchange the banners, polling, requesting signup for news letter etc.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
First of all we made a custom function and give it a name openPopupWindow(), in this function we simply call the built-in function windows.open() and give some parameters to window.open() function which are used for specifications for popup window that is going to be open. In this example the first parameter is webpage/website name, second parameter is the name given to the popup window, third parameter is the height, fourth is the width, fifth parameter handles the top margin to display popup window in the current window, sixth one is self explanatory, seventh parameter means there will be no scrollbar in the popup windows that is going to be open, eighth parameter means there will be no status bar, and last parameter means there will be no menubar in the popup window.
Happy Coding, Keep Coding…!