How to show an alert dialog in Javascript

Description

alert() shows a message dialog:

Example


<!DOCTYPE HTML> 
<html> 
    <body> 
        <script type="text/javascript"> 
            alert("message");
        </script> 
    </body> 
</html><!-- w  w w . ja v a2 s. co  m-->

Click to view the demo





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window