How To Redirect Page Using Javascript Or JQuery
There are several ways that we can redirect page using javascript.
Best two ways are given below.

The best preferred will be window.location.replace.
This is because, window.location.replace simulates the HTTP Redirect absolutely.
Lets consider the difference between location.replace and location.href.
window.location.replace doesn't keep the browser's history.
We cannot navigate back to the previous page.
But location.href keeps the history for back navigation.
Its much similar to clicking on a link which stores the history.