this is a bit of a specific question so I\'ll get right to the point.
I\'m working on a short and simple drag and drop routine for part of a web application, and alt
In W3C browsers, you can call the preventDefault method on the event object. The IE equivalent is to set the returnValue to false.
function stopDefault(e) {
if (e && e.preventDefault) {
e.preventDefault();
}
else {
window.event.returnValue = false;
}
return false;
}
EDIT: Just re-read the question and you might also want to prevent the default action in the part of your code that handles the actual dragging, and not just at the initial mousedown or click.