Hello. I need to refresh the page after one second after a click, how can I help?
$('.link a').click(function(){ location.reload(); });
Hello. I need to refresh the page after one second after a click, how can I help?
$('.link a').click(function(){ location.reload(); });
$('.link a').click(function(){ setTimeout(function() {window.location.reload();}, 1000); });
Read about the intervals. SetInterval
Source: https://ru.stackoverflow.com/questions/160413/
All Articles