This is a handy helper script to show you when the various kinds of events trigger while you browse the site. You can use it to troubleshoot your script. To see this work:
1. Open the CONTENTdm demo site.
2. Open the Developer’s Tool by right-clicking and selecting Inspect (terms vary depending on which browser you are using).
3. Open the Console tab to view the messages.
You will see different messages when you enter, leave different pages, or click a button on a page on the demo site.