For example, you can use jQuery dialiog:
http://jqueryui.com/dialog[
^].
There are many 3rd-party components, in particular, jQuery UI plug-ins collectively known as "modal pop-up", with different features, effects, etc:
http://bit.ly/1Ag0G43[
^].
The benefit of such solution is that the modal behavior is simulated on the same Web page. Real pop-ups (creating a new browser window) are ugly, irritating and can be blocked by users using special browser plug-ins developed for this purpose; and the
confirm
function embedded in JavaScript is just ugly, platform-dependent and not flexible.
—SA