First i want to say that i am a newbie in the javascript world.
I want to write a function for a button:
when button is pushed -> x=0 ; post(x); display x;
when button is released -> x=1; post(x); display x;
when button is hold down -> while hold:
if(x=0){post(x); display x; x++}
if(x=1){post(x); display x; x--}
This is what i have come up with so far:
Help would be appreciated very much.
post? And what do you mean by "while hold", an infinite loop?