JavaScript Alerts

You should have received an alert when you arrived on this page. The code looks like this:

<script LANGUAGE="JavaScript" and TYPE="text/javascript">
<!-- start JS hide
// an example of an alert box

alert("This is an alert!");

// end JS hide -->
</script>

The alert method should end with a semicolon. The text you want to appear in the box should be inside quotes.

Back to top     Home     Serious Stuff

© 2002. Copyright Sue Nethercott.