In programming languages, functions are often gathered together in packages and methods ready for use. They are called frameworks and aim to help developers save time to get the expected result.
What is jQuery?
How to make page redirect using jQuery
ENJOYING THIS POST?
Get More Benefits With LiveEdu Pro
However, this page redirection task is relatively simple. Thus, you would not need to use jQuery as optimization programming tool.
// Similar to HTTP redirect behavior
// Similar behavior to click a link
window.location.href = "Http://livecoding.tv" ;
// Open a new window without losing origin
window.open ( "Http://livecoding.tv" )
The “replace ()” removes the source page of your browsing history, which makes it smaller if the user wants to return to a previous page without too many clicks. If you want to simulate a click on the link, use the “location.href”.
These were some examples of how to perform this activity. If you know of another way to do it, please share in the comment section below.
Another way to find cool stuff about jQuery is to check our project page !