Right click this window and select "view source" in order to copy the source for this script.
JavaScript OnError Alternate
View Source for the JavaScript OnError handler... This script is a demonstration of trapping the error and displaying any error condition that JavaScript recognizes.