1//its actually
2window.location.href = "/App/Home"
3//or
4window.location.href = "https://www.google.com/"
1//example 1
2document.getElementById("lbl_url").innerHTML = "Page location is " + window.location.href;
3//example 2
4var x = location.href;
1var url = new URL("http://aaa.bbb.ccc.com/asdf/asdf/sadf.aspx?blah");
2console.log(url.protocol); // "http:"
3console.log(url.hostname); // "aaa.bbb.ccc.com"
4console.log(url.pathname); // "/asdf/asdf/sadf.aspx"
5console.log(url.search);