0
Will the draggable attribute work without JavaScript?
3 Réponses
+ 1
I think yes
+ 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.
0
Thanks