In each case, the related message is shown in next alert with an Ok button to close the alert. You may perform an action there rather showing alerts. A prompt alert example. In this demo, a prompt alert is shown to take the user input before proceeding. See the demo online: See online demo and code Setting up this cool plug-in.
An html document is made up of html elements, html element attributes, comments, special characters and doctype. If you like to add presentational features to an html document you can attach css to an html document, to add dynamic user experience (e.g. popup, alert message, animations etc.) to an html document you can add JavaScipt to your html document.