Answer the question
In order to leave comments, you need to log in
How to simulate a click in the user's browser?
The site has text with a link
How to simulate a user click on this link, a few seconds after opening the page in his browser?
For example, the site loveto.pro
, on the top left there is a link in the text.
How can I simulate this click after opening this site in the user's browser?
Answer the question
In order to leave comments, you need to log in
setTimeout(function() {
let link = document.querySelector(linkSelector);
link.click();
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question