Sets whether an element is draggable.
Note: The draggable attribute is supported in Firefox from version 3.5 and in Safari from version 5.By default, anchor and img elements and text selections are draggable in Firefox. You can modify this behavior with the draggable attribute. Use the draggable attribute together with the ondragstart event to enable dragging. See the example below for details.
In Google Chrome and Safari, use the -webkit-user-drag style property for similar functionality.
Boolean, one of the following values:
|Element is not draggable.|
|Element is draggable.|
Example HTML code 1:
This example illustrates the use of the draggable attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments