11/1/2019 1:57:20 PM

The following code can be used to create a redirect in Javascript.

//absolute path window.location.href = "https://www.codelocker.net"; //relative path window.location.href = "/posts/";