Answer the question
In order to leave comments, you need to log in
How to make two events on onclick with setTimeout on second event?
Friends, help. For example:
<span onclick="history.pushState('3vTP7WalcJc', null, null); return false" class="loadvid2">МУЗТВ Онлайн ></span>
Answer the question
In order to leave comments, you need to log in
<span onclick="clickHandler()" class="loadvid2">МУЗТВ Онлайн ></span>
function clickHandler(){
// Событие 1
setTimeout(function(){
// Событие 2, через 5 секунд
}, 5000);
return false;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question