<div id="myElement" onmousedown="beginDrag(event);" style="position: absolute; left: 150px; top: 150px; width: 100px; background-color: blue;"> Test one two three </div>