Back to Convention

Brett Moore

Executive VP of Sales

Brett Moore is a Regional Vice President of Appreciation Financial, the premiere financial services company helping teachers and other school district employees gain a better understanding of their retirement, college funds and life insurance strategies.

```javascript // Find the back button element const backButton = document.querySelector('.back-button'); // Add a click event listener to the back button backButton.addEventListener('click', () => { // Check if the referrer URL is from the same domain if ( document.referrer.includes(window.location.hostname) ) { // If the referrer URL is from the same domain, go back to the previous page window.history.back(); } else { // If the referrer URL is from a different domain, redirect to a default page window.location.href = 'https://www.appreciationfinancialevents.com/annual-convention'; } }); ```