There are many ways of doing redirect in JavaScript this should be the standard implementation for changing the current window's location.
Source code viewer
// Similar behavior as clicking on a link. window.location.href = 'http://browse-tutorials.com'; // Similar behavior as a HTTP redirect. window.location.replace('http://browse-tutorials.com');Programming Language: Javascript