Javascripted redirected page
This is a javascripted redirected page to see what happens when it is indexed.
When the user clicks the "Redirect" button, it activates the onclick event handler, triggering the execution of the myFunction() function. This function, when run, changes the value of "location.href" to "https://www.simoncox.com/seotests/jsredirect1/" instructing the browser to navigate to that specific URL.
Now, let's look at two more instances of using JavaScripted redirects.
In the example below, setTimeout() is used for a JavaScript redirect. This is a built-in JavaScript function that allows you to execute another function after a certain period (in this case, 10 seconds).