That is a great question.
There are basically two methods to display a popup window in JS.
alert() or window.open().
However if you want to use a JS library then the option are vast.
The most popular JS library would be jQuery UI . This provides a Dialog Widget the is extremely easy to use and customize.
Other option would by CSS or Bootstrap modal.