window.alert() : Window Object : Window JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Window » Window Object »

 

window.alert()










Syntax








window.alert(string)



The alert() method displays an alert dialog box when invoked.

The 'string' is displayed in the box.












<html>
    <script language="JavaScript">
    <!--
       alert('Here is an alert dialog box.');
    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» Window Object