What Are JavaScript Redirects?
JavaScript redirects, essentially, are one of several methods of informing users and web crawlers that a page is available in another location.
They are often used to inform users about changes in the URL structure, but they can be used for just about anything.
Most modern websites use these types of redirects to redirect to HTTPS versions of web pages.