0

This is a javascript, I have no experience in coding unfortunately. So I need your help.

I'm trying to put a 10 sec delay on this code

document.getElementById('example').click();

The idea is that I want a link to be click after 10 secs.

I tried putting 10000); at the end of the code but it makes the code not work.

How can I make this code do what I want?

Felix Kling
  • 795,719
  • 175
  • 1,089
  • 1,143

1 Answers1

1

setTimeout(function(){ document.getElementById('example').click(); },10000);