This tests the ONUNLOAD attribute of the BODY element. When you try to exit the page, a Javascript alert dialog box will display with the following message: 'Thanks for visiting this page'.