So I have this Javascript code, however i want to make it execute the code after 5 seconds, i was wondering whether this was possible:
var links = document.querySelectorAll(".feed-item a");
for(var i = 0; i < links.length; i++){
links[i].onclick = function() {
location.href="/mypage.html";
}
}