Comment by socalgal2

5 days ago

Interestingly the code on the page doesn't work. onmouseup and onpointerup are the wrong event for a button because the button should only send an "clicked" event if the user pressed DOWN on the button, then released while still on the button. The example code though will send an event even if the user started off the button.

I think that emphasizes the point though. You need more code to do it correctly.