I guess the main reason for using alert() is to have native support. In a web app I would use only alert, for desktop websites mostly div popup.
But actually the question would fit better in https://ux.stackexchange.com
More Related Contents:
- How to have html popup appear over main html page?
- How can I make my header smaller if i will scroll down the webpage [closed]
- Write tags in HTML and print
- Change from (+) symbol to (-) after click (function(){
- How can i create html automatic change page? [duplicate]
- Height equal to dynamic width (CSS fluid layout) [duplicate]
- How to disable HTML links
- Cross-browser multi-line text overflow with ellipsis appended within a fixed width and height
- Refresh/reload the content in Div using jquery/ajax
- Animate element to auto height with jQuery
- How to style “input file” with CSS3 / Javascript? [duplicate]
- How to get nth-child selector to skip hidden divs [duplicate]
- How to auto-scroll to end of div when data is added? [duplicate]
- Dashed border animation in css3 animation
- Disable dragging an image from an HTML page
- Use a new CSS file to override current website’s
- How to keep the menu state on page reload
- How can I change the font (family) for the labels in Chart.JS?
- Unusual shape of a textarea?
- I want to show list items as 2 or more columns (dynamic alignment)
- How to display Image dynamically on UI?
- CSS Textarea that expands as you type text [duplicate]
- Modal image galleries – multiple images
- Convert dropdown to selection boxes with color and trigger drop down action
- Set focus and cursor to end of text input field / string w. Jquery [duplicate]
- How to make superfish dropdown menu responsive?
- How can I make an image carousel with only CSS?
- How to customize the position of an alert box
- Showing Placeholder text for password field in IE
- In jQuery mobile, what’s the diff between tap and vclick?