Pop up dialogue boxes should not be confused with
pop-up windows. The latter is often seen as an annoyance by most web users. They are used to
advertise all sorts of products you don’t really need and also brings the risk of sheltering spywares on your system. Popup dialogues, however, are used to add interaction in your web page. There are three kinds of pop up dialogue boxes and one of them is the alert pop up dialogue box.
The alert dialogue box is the simplest and is the most widely used of the three JavaScript pop up dialogue boxes. Its use is to simply alert, just as the
name implies, the user that the information he has given has come through by displaying a message. When the browser activates the script for the alert dialogue box, a small box will appear and all operations in the webpage are suspended until it is confirmed that the user has read the information. Usually, when the user clicks on the OK button, the box will disappear and all operations are resumed.
Here is a sample code of an alert pop up dialogue box:
<! - sample code - !>
<html>
<head>
<script type="text/javascript">
function disp_alert()
{
alert("This is an example of an alert box")
}
</script>
</head>
<body>
<form>
<input type="button" onclick="disp_alert()" value="Display alert box">
</form>
</body>
</html>
<! - end sample - !>
</textarea>
The time will continue beyond the time delay because Flash frames are looped and it can't be checked every single moment. This scenario causes time inaccuracy. There are two ways to get time accuracy, make use of Loop While or Plug and Play Routine. Time
Tracked: Jun 30, 13:56