0

Will the draggable attribute work without JavaScript?

8th Oct 2019, 5:21 PM
Daniel Awuni
Daniel Awuni - avatar
3 Réponses
+ 1
I think yes
8th Oct 2019, 6:14 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
draggable will have to be paired with ondragstart to work https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable And this is HTML drag and drop API https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API To conclude, yes and no: yes in that you can drag the element with mouse; no in that you still need JavaScript to define the behavior.
8th Oct 2019, 6:23 PM
Gordon
Gordon - avatar
0
Thanks
8th Oct 2019, 6:41 PM
Daniel Awuni
Daniel Awuni - avatar