In the script, you would change the line var transfer = true; to redirect automatically.
// if you want the page to transfer automatically, set transfer = true
// if you want the page to transfer upon their clicking a button, set it to false
Note that in the example, the button is commented out to avoid clicks to nowhere.
javascript browser redirect traffic cop