I am developing a Chrome browser extension that allows a drag & drop kind of operation everywhere on the page. However, while the user performs this operation the cursor
Simply override the "dragstart" message handler as well as the "selectstart"... While in the function cancel the event...
<script type="text/ecmascript">
window.addEventListener("dragstart", function(fEventObject){ CancelEvent(fEventObject); } );
window.addEventListener("selectstart", function(fEventObject){ CancelEvent(fEventObject); } );
function CancelEvent(fEventObject)
{
if (fEventObject.preventDefault) fEventObject.preventDefault();
if (fEventObject.cancel != null) fEventObject.cancel = true;
}
</script>
Could you add a css class to the body tag, that sets the cursor, then remove than class on drop?