Tech Study

How to redirect a user from one webpage to another webpage using Jquery/Javascript?

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

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’)

TaggedHow to redirect a user from one webpage to another webpage using Jquery/Javascript?

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more