I am writing a drag and drop script. The problem when holding down the mouse and moving it along the page is that it starts selecting the text. I found a way to prevent this by calling...
var selection = window.getSelection();
selection.removeAllRanges();
...when moving the mouse. As usual, I am having trouble with Internet Explorer. Is there an equivalent to make this method work in <IE9 (No plug-ins, pure JavaScript)?
Thanks in advance!