javascript - Check to see if a HTML button gets released -


so want able tell when html button no longer clicked/touched can change boolean true false.

<input id="clickme" type="button" value="click start." onclick="playit();" /> 

i way see if it's still pressed work well.

just add onmouseup button:

<input id="clickme" type="button" value="click start." onmouseup="playit();"> 

Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Java JSoup error fetching URL -

webstorm - PhpStorm file cache conflict with TypeScript compiler -