JavaScript Przekierowanie do URL
window.location.href = "http://mywebsite.com/home.html";
Grepper
window.location.href = "http://mywebsite.com/home.html";
window.location = "./dir/file.html?year=" + thisYear + "&"
+ "month=" +thisMonth + "&"
+ "day=" +thisDay;
// start with a . to use relative path
// start with a / to use root
// you can also use a URL
if (window.location.search === '') {
window.location = window.location.origin + '?arg=1'
} else {
window.location = window.location.origin + window.location.search + '&arg=1'
}