Link Like DHTML Elements And Disabling Text Selection

When turning a non-anchor element into an onclickable using JavaScript, you may have noticed that browsers will still allow users to select text ranges.

Disable the behaviour using this:

element.onselectstart = function(){return false};
element.unselectable = "on";
element.style.MozUserSelect = "none";