Javascripting redirecting page

This is a javascripted redirecting page to see what happens when it is indexed.

When the user selects the "Redirect" button, it activates the onclick event handler, initiating the execution of the myFunction() function. The myFunction() function, when executed, updates the value of "location.href" to "https://www.simoncox.com/seotests/jsredirect2/" prompting the browser to navigate to that specified URL.

OK, let's explore two additional scenarios for JavaScripting redirects.

In the following example, setTimeout() is employed for a JavaScript redirect. This is an inherent JavaScript function that allows the execution of another function after a specified duration (in this case, 10 seconds).