Calcualtion in alert dialog : alert dialog « Dialogs « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var a = 6, b = 4;
alert(a - b);
//  -->
</script>
</head>
<body>

</body>
</html>








13.1.alert dialog
13.1.1.Using alert Boxes
13.1.2.Use alert dialog box to display the content of an array
13.1.3.Start a new line in alert box in IE
13.1.4.Add quotation marks to alert box
13.1.5.Add a tab to alert box (IE)
13.1.6.Calcualtion in alert dialog