Tuesday, October 23, 2012

JavaScript Alert Box Code for Bryan

JavaScript Popup Boxes
Alert Box
- An alert box is used to make sure information reaches the user
- When an alert box pops up, the user must click "OK" to proceed

<head>
<script type="text/JavaScript">
function show_alert()
     {
            alert("I am an alert box!");
     }
</script>
</head>
<body>

<input type="button" onclick="show_alert()" value="Show alert box" />

</body>

(Where it says alert("I am an alert box!"); - you can input your own text/info)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.