clicar automatico apos segundos

settimeout javascript

by thvinic

HTML

<a href="https://www.google.com.br" id="link">google</a>

JavaScript

var variableToCancelInterval = setInterval(function(){
document.getElementById("link").click();
}, 5000);