how to redirect to a url using Javascript

Views: 165 Ask New Question


How can i redirect from a page to another page programatically using Javascript?

On By

1 Answer


Using the following javascript code, you can redirect to a new page from any page

var newUrl = 'https://reviewdb.io/more'
window.location.href = newUrl;
On By


Answer This Question