Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - redirection

0 votes
5 views
added Feb 9 in jQuery by LC Marshal Lieutenant (13,570 points)
edited Jul 12 by LC Marshal
window.location.replace("http://hormart.com");

2 Responses

0 votes
responded Jun 29 by LC Marshal Lieutenant (13,570 points)
edited Jul 12 by LC Marshal
//Directly redirect
$(location).attr('href','http://example.com/Registration/Success/');
0 votes
responded Jun 29 by LC Marshal Lieutenant (13,570 points)
edited Jul 12 by LC Marshal
//Redirect with delay
setTimeout(function() {
   window.location.href = "/";
 }, 3000);
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...