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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -