How do I redirect to another webpage?
@lebyy▲ 0 net votes
Problem: How can I redirect the user from one page to another using jQuery or pure JavaScript? Fix (from the top answer): One does not simply redirect using jQuery jQuery is not necessary, and window.location.replace(...) will best simulate an HTTP redirect. window.location.replace(...) is better than using window.location.href , because replace() does not keep the originating page in the session history, meaning the user won't get…