Redirect to a Webpage The replace() method replaces the current document with a new one: Replace document