As you can see in my code below, I needed to make my image link via JavaScript instead of using the simple HTML method (for specific reasons), however I need it to take a 3-second interval for the boot function, but I could not ... can you tell me what I was wrong about?
<a name="subir">aqui</a>
<div style="height: 1000px; width: 100%;"></div>
<img src="next.png" id="cima">
<script type="text/javascript">
document.getElementById('cima').addEventListener('click', function() {
location.href = '#subir'}, 3000);
</script>