Using Events with the Application Object
Using Events with the Document Object