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 = ''
window.location.href = newUrl;
On By

Answer This Question