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');
In a world where digital presence is paramount, the question isn't whether you should do…
Over the years, people have experimented with various methods to maintain healthy and beautiful hair.…
Your brand more than developing an attractive and creative logo and infectious motto. It's the…
Introduction Are you someone who has suffered from a personal injury and want to file…
Operating from home has emerged as one of the most popular ways of doing jobs…
If the consequences of our society’s ever-growing debt are what worries you, then it is…
View Comments
Thanks for the useful article.