How to open dialogs using JavaScript and Anchor tags (HREF's)

By Alvin J. Alexander, devdaily.com

Here are three JavaScript examples I don't want to forget. When you click on the links below I'm opening three different types of JavaScript dialogs, specifically an Alert, a Confirm, and a Prompt dialog.

Feel free to grab the source code for these examples if you need them. Just view the source of this page, and search for "javascript:" until you find the correct code.


devdaily logo