jQuery - site redirection

0 votes
461 views
added Feb 9, 2018 in jQuery by LC Marshal Captain (25,790 points)
edited Aug 22, 2019 by LC Marshal
window.location.replace("http://hormart.com");

2 Responses

0 votes
responded Jun 29, 2018 by LC Marshal Captain (25,790 points)
edited Jul 12, 2018 by LC Marshal
//Directly redirect
$(location).attr('href','http://example.com/Registration/Success/');
0 votes
responded Jun 29, 2018 by LC Marshal Captain (25,790 points)
edited Jul 12, 2018 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.
...