Wednesday, May 2, 2007

Disabling Text Selection For Drag-Drop

I just found one blog that is quite useful. It is about how to prevent unintentional text selection during drag-and-drop. Take a look of this blog:
Thanks to Joe Danziger that posted this topic.

<script type="text/javascript">
function disableSelection(element) {
element.onselectstart = function() {
return false;
element.unselectable = "on"; = "none"; = "default";
<script type="text/javascript">

No comments:

Subscribe in a Reader