include this little beaut in your page (along with jquery)
<script src="./jquery.prompt.js"></script> <link rel="stylesheet" href="./jquery.prompt.css"/>
And then create popups
This adds the following methods to jQuery
The first parameter returns either, bool ('ok' = true, 'cancel' = false) or if a text value is given by the user in the prompt this value is returned.
The scope of the callback is within the DOM form (which belongs to the prompt window). This is so we can access any customised extras which were added to the popup
Passing in a boolean value as the second parameter indicates the default value, and an additional "Do not bug me again message". $.fn.prompt(function, true).
There are circumstances like asking user to install a plugin and reload their page, or verifying the value they have provided before closing the dialog. So using preventDefault() lets us persist the dialog.
Get creative with CSS and you can make some pretty cool looking prompts