i want you to have to hold the button down for a second for it to start... I've tried a couple of things like
function startHold1() {
setTimeout(function(){
startHold1A = setInterval(func1(), 250) }, 1000)
}
function endHold1() {
setTimeout(function(){
clearInterval(startHold1A, 950)
})
}
func1 basically adds 1 to a variable and displays it on the screen also i have a button that initiates startHold1 onmousedown and endHold1 onmouseup I'm a super noob at code please help!