I have a function
Plus() {
document.getElementsByClassName('like hintable')[0].click(); Hide();alert ("test") ;
}
How could I run document.getElementsByClassName('like hintable')[0].click()
after two seconds run Hide()
after two other seconds run alert
.
Is there any way without creating 3 functions and use setTimeOut
.