solvit.io

Redirect the user to another web page using JavaScript

Solution
var url = 'http://...';
window.location.replace(url);
Example
window.location.replace('http://example.org');
Find more solutions about: , , ,