Redirect one page to another page can be done via replace the location or change the href.
But jQuery is not necessary for redirecting the page.
It is better to use
window.location.href = "http://www.namasteui.com";
Rather than
window.location.replace("http://www.namasteui.com"); as replace() does not put the originating page in the session history.
But as it requires jQuery then you can use the below statement:
$(location).attr('href', 'http://www.namasteui.com');
$(window).attr('location','http://www.namasteui.com');
$(location).prop('href', 'http://www.namasteui.com'); Content marketing has a hidden tax. It's not the writing itself, it's everything that happens…
Most marketing teams aren't failing because they lack data. They're failing because they can't act…
Email marketing continues to be one of the most effective ways for businesses to communicate,…
Xerox first introduced it around the mid-1970s. The need came up because the management activities…
Investing in the forex market may look to be a dangerous game. With some worthwhile…
The coronavirus outbreak has drastically changed the way we live our lives. Yes, that's absolutely…
View Comments
Thanks for the useful article.