javascript - Stopping chrome from changing cursor to a globe while dragging a link -


i have standard link such as:

<a href="/test">test</a> 

in chrome, clicking , dragging on link result in cursor changing arrow dragging globe. globe can dropped on url or bookmarks bar.

i trying implement drag-and-drop filesystem interface in javascript. files , folders marked in "a" tags. when click drag one, globe icon appears , breaks javascript event (in case, jquery's mousemove).

any ideas on how prevent chrome converting dragged links globe?

edit: using well-placed event.preventdefault()'s resolve issue.

try use event.preventdefault() in onmousedown

<a href="/test.js" onmousedown="event.preventdefault()">test</a> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -