if (/msie\s|trident/i.test(window.navigator.userAgent)) { window.location.href = 'html/unsupported.html'; } document.addEventListener('click', function (event) { if (event.target.closest('[data-app-return]')) window.location.href = 'main.php'; });