Introduction
In this article I am going to tell you how to redirect a user from one webpage to another webpage using Jquery or Javascript. For this excercise, you can use any javascript editor
There are lots of ways to redirect a user from one web page to other web page.
By using window.location
window.location.href = ‘https://techstudy.org’
document.location.href = ‘/path-of-the-webpage’
window.location.replace(‘https://techstudy.org’)
window.location.assign(‘https://techstudy.org’)
By using jQuery
$(location).attr(‘href’,’https://techstudy.org’)
$(window).attr(‘location’,’https://techstudy.org’)
$(location).prop(‘href’, ‘https://techstudy.org’)