This example uses the HTML DOM to assign an "onmousedown" and "onmouseup" event to a p element.
Click me.