Welcome to findnerd, today we are going to discuss How to redirect html page using jQuery ?
In this blog you can see How to redirect html page ?
You can simply use the JavaScript "window.location" property to make a page redirect.
you can see bellow example:
if you want to redirect the page when an event occurs, such as when the user click on a button, you can just use the window.location.href
window.location.href = "http://findnerd.com";
If you want to redirect the user from one page to another automatically, you can use the bellow syntex
window.location.replace("page_url")
you can see bellow example:
window.location.replace("http://findnerd.com/");
0 Comment(s)