I would not advise you to do a "real" popup, such as
window.open
or
alert
:
http://www.w3schools.com/jsref/met_win_open.asp[
^],
http://www.w3schools.com/jsref/met_win_alert.asp[
^].
Pop-ups are considered very annoying, and alert is more suitable for primitive debugging. Many uses would use browser plug-ins or options for pop-up blocking. For really nice behavior, it's much better to use simulated modal behavior on the same page, such as jQuery
Dialog
:
http://jqueryui.com/dialog[
^].
There are many other similar solutions collectively known as
modal pop-up, with all kinds of design:
http://bit.ly/1KQXvGS[
^].
This CodeProject article can also be useful:
JavaScript Modal Popup Window[
^].
—SA