If you want to show a popup, show a popup, not alert, which is hardly designed for real fully-fledged Web applications. This is done using
window.open
:
https://developer.mozilla.org/en-US/docs/Web/API/Window/open[
^].
However, many users consider all pop-ups as evil, for some good reasons. Not only this is intrusive and inconvenient, but the user will try to avoid annoying advertizement pop-ups. For this purpose, pop-up blocking browser plug-ins can be used; and such plug-ins are fairly popular.
At the same time, you can easily mimic the modal behavior on the same page, which is more convenient and gives much better impression and user experience. For example, you can use jQuiery UI
Dialog
:
https://jqueryui.com/dialog[
^].
Besides, there a many 3-rd party jQuery components ("plug-ins"), collectively referred to as
modal popup, offering different visual effects (notably dimming of the window) and other features:
http://bfy.tw/Vdm[
^].
—SA