Added onmousedown and onmouseup attributes in the html