Bind Hold to HTML5 shape

How can I bind a Hold event to a HTML5 shape. I have used the on-hold effectively with controls that appear in the dom but when I create a control as a rectangle on a HTML5 canvas how can I bind this event to it?