开发者

How can I make a link undraggable?

开发者 https://www.devze.com 2023-03-17 10:01 出处:网络
I am using the following four buttons -- example on Fiddle I like the look of these buttons, but I notice when a user clicks, holds-down on a link and moves the cursor away from the link, the links d

I am using the following four buttons -- example on Fiddle

I like the look of these buttons, but I notice when a user clicks, holds-down on a link and moves the cursor away from the link, the links don't act in the same way as buttons.

Instead they appear as draggable objects although there's a circle that appears to show they are not draggable.

This effect seems not to be unique to my code. I see it everywhere and even if you try and click, drag on the "run" button on fiddle you will see the same.

Maybe I'm being fussy here, but I would really like to try and eliminate this strange effect.

Is there any way I can stop this happening. If I place a button on t开发者_高级运维he page, click and drag then nothing happens at all. No circle appears. No shadow image of the link (firefox) appears. This is the kind of effect I am looking for.


This is the correct: http://jsfiddle.net/fTRDm/2/, onmousedown, not onclick.

0

精彩评论

暂无评论...
验证码 换一张
取 消