Example Scripts I’ve Written

Alert Box

Doc. Object Model

In this example we have written "alert" as "adddlert" to deliberately produce an error.

The name property of the Error object returns the name of the error and the message property returns a description of the error: