{"id":2060,"date":"2012-05-19T12:56:23","date_gmt":"2012-05-19T12:56:23","guid":{"rendered":"http:\/\/www.stigmahost.com\/?p=2060"},"modified":"2026-11-02T07:12:12","modified_gmt":"2026-11-02T07:12:12","slug":"html5-drag-drop","status":"publish","type":"post","link":"https:\/\/stigma.host\/en\/html5-drag-drop\/","title":{"rendered":"HTML5 Drag &#038; Drop"},"content":{"rendered":"<p class=\"intro\">\u03a4\u03bf Drag and drop \u03b1\u03c0\u03bf\u03c4\u03b5\u03bb\u03b5\u03af \u03bc\u03ad\u03c1\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03c0\u03c1\u03bf\u03c4\u03cd\u03c0\u03bf\u03c5 HTML5.<!--more--><\/p>\n<hr \/>\n<h3>Drag and Drop<\/h3>\n<p>\u03a4\u03bf Drag and drop \u03b5\u03af\u03bd\u03b1\u03b9 \u03ad\u03bd\u03b1 \u03c0\u03bf\u03bb\u03cd \u03ba\u03bf\u03b9\u03bd\u03cc \u03c7\u03b1\u03c1\u03b1\u03ba\u03c4\u03b7\u03c1\u03b9\u03c3\u03c4\u03b9\u03ba\u03cc. \u0395\u03af\u03bd\u03b1\u03b9 \u03bf\u03c4\u03b1\u03bd &#8220;\u03c0\u03ac\u03c1\u03b5\u03c4\u03b5&#8221; \u03ad\u03bd\u03b1 \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03af\u03bc\u03b5\u03bd\u03bf, \u03c4\u03bf \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5 (drag) \u03ba\u03b1\u03b9 \u03c4\u03bf \u03b1\u03c6\u03ae\u03c3\u03b5\u03c4\u03b5 (drop) \u03c3\u03b5 \u03bc\u03b9\u03b1 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03ae \u03b8\u03ad\u03c3\u03b7 .<br \/>\n\u03a3\u03c4\u03b7\u03bd HTML5, \u03c4\u03bf drag and drop \u03b5\u03af\u03bd\u03b1\u03b9 \u03bc\u03ad\u03c1\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03c0\u03c1\u03bf\u03c4\u03cd\u03c0\u03bf\u03c5, \u03ba\u03b1\u03b8\u03ce\u03c2 \u03ba\u03ac\u03b8\u03b5 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf \u03bc\u03c0\u03bf\u03c1\u03b5\u03af \u03bd\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 draggable.<\/p>\n<hr \/>\n<h3>Browser Support<\/h3>\n<p>\u039f Internet Explorer 9, Firefox, Chrome, \u03ba\u03b1\u03b9 \u03bf Safari 5 \u03c5\u03c0\u03bf\u03c3\u03c4\u03b7\u03c1\u03af\u03b6\u03bf\u03c5\u03bd \u03c4\u03bf drag and drop.<\/p>\n<p><strong>\u03c3\u03b7\u03bc\u03b5\u03af\u03c9\u03c3\u03b7:\u00a0<\/strong>\u03a4\u03bf Drag and drop \u03b4\u03b5\u03bd \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03b5\u03af \u03bc\u03b5 \u03c4\u03bf\u03bd Safari 5.1.2.<\/p>\n<hr \/>\n<h3>HTML5 Drag and Drop \u03c0\u03b1\u03c1\u03b1\u03b4\u03b5\u03af\u03b3\u03bc\u03b1\u03c4\u03b1<\/h3>\n<p>\u03a4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03b1\u03c0\u03bf\u03c4\u03b5\u03bb\u03ad\u03b9 \u03ad\u03bd\u03b1 \u03b1\u03c0\u03bb\u03cc \u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1 \u03c4\u03bf\u03c5 drag and drop<\/p>\n<h3>\u03a0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1<\/h3>\n<p><code><br \/>\n&lt;!DOCTYPE HTML&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;script type=\"text\/javascript\"&gt;<br \/>\nfunction allowDrop(ev)<br \/>\n{<br \/>\nev.preventDefault();<br \/>\n}<br \/>\nfunction drag(ev)<br \/>\n{<br \/>\nev.dataTransfer.setData(\"Text\",ev.target.id);<br \/>\n}<br \/>\nfunction drop(ev)<br \/>\n{<br \/>\nvar data=ev.dataTransfer.getData(\"Text\");<br \/>\nev.target.appendChild(document.getElementById(data));<br \/>\nev.preventDefault();<br \/>\n}<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;div id=\"div1\" ondrop=\"drop(event)\"<br \/>\nondragover=\"allowDrop(event)\"&gt;&lt;\/div&gt;<br \/>\n&lt;img id=\"drag1\" src=\"img_logo.gif\" draggable=\"true\"<br \/>\nondragstart=\"drag(event)\" width=\"336\" height=\"69\" \/&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n<\/code><br \/>\n<a title=\"\u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1\" href=\"http:\/\/www.stigmahost.com\/tuts\/html5\/drag&amp;drop\/\" target=\"_blank\"> \u03b4\u03b5\u03af\u03c4\u03b5 \u03c4\u03bf \u03b5\u03b4\u03ce \u03c3\u03b5 \u03b5\u03c6\u03b1\u03c1\u03bc\u03bf\u03b3\u03ae<\/a><\/p>\n<p>\u039c\u03c0\u03bf\u03c1\u03b5\u03af \u03bd\u03b1 \u03c6\u03b1\u03af\u03bd\u03b5\u03c4\u03b1\u03b9 \u03c0\u03b5\u03c1\u03af\u03c0\u03bb\u03bf\u03ba\u03bf, \u03b1\u03bb\u03bb\u03ac \u03b1\u03c2 \u03c0\u03b1\u03c1\u03bf\u03c5\u03bc\u03b5 \u03bc\u03b5 \u03c4\u03b7\u03bd \u03c3\u03b5\u03b9\u03c1\u03ac \u03cc\u03bb\u03b1 \u03c4\u03b1 \u03bc\u03ad\u03c1\u03b7 \u03c4\u03bf\u03c5 \u03b5\u03bd\u03cc\u03c2 drag and drop \u03c3\u03c5\u03bc\u03b2\u03ac\u03bd (event).<\/p>\n<hr \/>\n<h3>\u039a\u03ac\u03bd\u03c4\u03b5 \u03c4\u03b1 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1 Draggable<\/h3>\n<p>\u03a0\u03c1\u03ce\u03c4\u03b1 \u03b1\u03c0 &#8216;\u03cc\u03bb\u03b1: \u0393\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03ad\u03bd\u03b1 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf draggable, \u03c0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03bd\u03b1 \u03bf\u03c1\u03af\u03c3\u03b5\u03c4\u03b5 \u03c4\u03b7\u03bd \u03b9\u03b4\u03b9\u03cc\u03c4\u03b7\u03c4\u03b1 (attribute) draggable \u03c3\u03b5 \u03b1\u03bb\u03ae\u03b8\u03b5\u03b9\u03b1 (true)<\/p>\n<p><code>&lt;img draggable=&quot;true&quot; \/&gt;<\/code><\/p>\n<hr \/>\n<h3>\u03a4\u03b9 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u00a0Drag &#8211; ondragstart \u03ba\u03b1\u03b9 setData()<\/h3>\n<p>\u03a3\u03c4\u03b7 \u03c3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1, \u03ba\u03b1\u03b8\u03bf\u03c1\u03af\u03c3\u03c4\u03b5 \u03c4\u03b9 \u03b8\u03b1 \u03c3\u03c5\u03bc\u03b2\u03b5\u03af \u03cc\u03c4\u03b1\u03bd \u03c4\u03bf \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5.<br \/>\n\u03a3\u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03c0\u03ac\u03bd\u03c9 \u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1, \u03c4\u03bf \u03c7\u03b1\u03c1\u03b1\u03ba\u03c4\u03b7\u03c1\u03b9\u03c3\u03c4\u03b9\u03ba\u03cc ondragstart \u03ba\u03b1\u03bb\u03b5\u03af \u03bc\u03b9\u03b1 \u03c3\u03c5\u03bd\u03ac\u03c1\u03c4\u03b7\u03c3\u03b7, \u03bc\u03b5\u03c4\u03b1\u03c6\u03bf\u03c1\u03ac\u03c2 (evenet), \u03c0\u03bf\u03c5 \u03ba\u03b1\u03b8\u03bf\u03c1\u03af\u03b6\u03b5\u03b9 \u03c0\u03bf\u03b9\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03bd\u03b1 \u03c3\u03c5\u03c1\u03b8\u03bf\u03cd\u03bd.<br \/>\n\u0397 dataTransfer.setData () \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf\u03c2 \u03ba\u03b1\u03b8\u03bf\u03c1\u03af\u03b6\u03b5\u03b9 \u03c4\u03bf \u03b5\u03af\u03b4\u03bf\u03c2 (type) \u03ba\u03b1\u03b9 \u03c4\u03b7\u03bd \u03b1\u03be\u03af\u03b1 (value) \u03c4\u03c9\u03bd \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03c0\u03bf\u03c5 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5.<\/p>\n<p><code><br \/>\nfunction drag(ev)<br \/>\n{<br \/>\nev.dataTransfer.setData(\"Text\",ev.target.id);<br \/>\n}<br \/>\n<\/code><\/p>\n<p>\u03a3\u03c4\u03b7\u03bd \u03c0\u03b5\u03c1\u03af\u03c0\u03c4\u03c9\u03c3\u03b7 \u03b1\u03c5\u03c4\u03ae, \u03bf \u03c4\u03cd\u03c0\u03bf\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03bf &#8220;Text&#8221; \u03ba\u03b1\u03b9 \u03b7 \u03c4\u03b9\u03bc\u03ae \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03bf id \u03c4\u03bf\u03c5 draggable \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf\u03c5 (&#8220;drag1&#8221;).<\/p>\n<hr \/>\n<h3>\u03a0\u03bf\u03c5 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 Drop &#8211; ondragover<\/h3>\n<p>\u03a4\u03bf event ondragover \u03ba\u03b1\u03b8\u03bf\u03c1\u03af\u03b6\u03b5\u03b9 \u03c0\u03bf\u03cd \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bd \u03bd\u03b1 \u03c0\u03ad\u03c3\u03bf\u03c5\u03bd \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c0\u03bf\u03c5 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5.<br \/>\n\u0391\u03c0\u03cc \u03c0\u03c1\u03bf\u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae, \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1\/\u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1 \u03b4\u03b5\u03bd \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bd \u03bd\u03b1 \u03c0\u03ad\u03c3\u03bf\u03c5\u03bd \u03c3\u03b5 \u03ac\u03bb\u03bb\u03b1 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1. \u0393\u03b9\u03b1 \u03bd\u03b1 \u03b5\u03c0\u03b9\u03c4\u03c1\u03b1\u03c0\u03b5\u03af \u03b7 \u03c0\u03c4\u03ce\u03c3\u03b7, \u03c0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03bd\u03b1 \u03b1\u03bb\u03bb\u03ac\u03be\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03c4\u03bf\u03c5 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf\u03c5.<br \/>\n\u0391\u03c5\u03c4\u03cc \u03b3\u03af\u03bd\u03b5\u03c4\u03b1\u03b9 \u03bc\u03b5 \u03c4\u03b7\u03bd \u03ba\u03bb\u03ae\u03c3\u03b7 \u03c4\u03bf\u03c5 event.preventDefault () \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf, \u03b3\u03b9\u03b1 \u03c4\u03bf event ondragover:<\/p>\n<p><code><em>event<\/em>.preventDefault()<\/code><\/p>\n<hr \/>\n<h3>\u039a\u03ac\u03bd\u03c4\u03b5 \u03c4\u03b7\u03bd \u03c0\u03c4\u03ce\u03c3\u03b7 (Drop) &#8211; ondrop<\/h3>\n<p>\u038c\u03c4\u03b1\u03bd \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c0\u03bf\u03c5 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03c0\u03ad\u03c3\u03bf\u03c5\u03bd, \u03ad\u03bd\u03b1 \u03b3\u03b5\u03b3\u03bf\u03bd\u03cc\u03c2 (event) \u03b8\u03b1 \u03c3\u03c5\u03bc\u03b2\u03b5\u03af.<br \/>\n\u03a3\u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1, \u03c4\u03bf \u03c7\u03b1\u03c1\u03b1\u03ba\u03c4\u03b7\u03c1\u03b9\u03c3\u03c4\u03b9\u03ba\u03cc ondrop \u03ba\u03b1\u03bb\u03b5\u03af \u03bc\u03b9\u03b1 \u03c3\u03c5\u03bd\u03ac\u03c1\u03c4\u03b7\u03c3\u03b7, drop(event):<\/p>\n<p><code><br \/>\nfunction drop(ev)<br \/>\n{<br \/>\nvar data=ev.dataTransfer.getData(\"Text\");<br \/>\nev.target.appendChild(document.getElementById(data));<br \/>\nev.preventDefault();<br \/>\n}<br \/>\n<\/code><\/p>\n<p><strong>\u03b5\u03c0\u03b5\u03be\u03ae\u03b3\u03b7\u03c3\u03b7 \u03ba\u03c9\u03b4\u03b9\u03ba\u03bf\u03cd:<\/strong><\/p>\n<ul>\n<li>\u03a0\u03ac\u03c1\u03c4\u03b5 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c0\u03bf\u03c5 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03bc\u03b5 \u03c4\u03b7\u03bd dataTransfer.getData (\u00abText\u00bb) \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf. \u0391\u03c5\u03c4\u03ae \u03b7 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf\u03c2 \u03b8\u03b1 \u03b5\u03c0\u03b9\u03c3\u03c4\u03c1\u03ad\u03c8\u03b5\u03b9 \u03cc\u03bb\u03b1 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c0\u03bf\u03c5 \u03bf\u03c1\u03af\u03c3\u03c4\u03b7\u03ba\u03b1\u03bd \u03c3\u03c4\u03bf\u03bd \u03af\u03b4\u03b9\u03bf \u03c4\u03cd\u03c0\u03bf \u03c3\u03c4\u03b7\u03bd setData () \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf<\/li>\n<li>\u03a4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c0\u03bf\u03c5 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03bf id \u03c4\u03bf\u03c5 \u03c3\u03c5\u03c1\u03cc\u03bc\u03b5\u03bd\u03bf\u03c5 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf\u03c5 (&#8220;drag1&#8221;)<\/li>\n<li>\u03a0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03c4\u03b5 \u03c4\u03bf \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf \u03c0\u03bf\u03c5 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03c3\u03c4\u03bf \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf \u03c0\u03bf\u03c5 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 drop<\/li>\n<li>\u039a\u03b1\u03bb\u03ad\u03c3\u03c4\u03b5 \u03c4\u03bf preventDefault() \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03b1\u03c0\u03bf\u03c4\u03c1\u03b1\u03c0\u03b5\u03af \u03b1\u03c0\u03bf \u03c4\u03bf \u03c0\u03c1\u03cc\u03b3\u03c1\u03b1\u03bc\u03bc\u03b1 \u03c0\u03b5\u03c1\u03b9\u03ae\u03b3\u03b7\u03c3\u03b7\u03c2 \u03c4\u03bf default handling \u03c4\u03c9\u03bd \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd. (\u03b7 \u03c0\u03c1\u03bf\u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03b5\u03af\u03bd\u03b1\u03b9 \u03bd\u03b1 \u03b1\u03bd\u03bf\u03af\u03b3\u03b5\u03b9 \u03c9\u03c2 \u03c3\u03cd\u03bd\u03b4\u03b5\u03c3\u03bc\u03bf\u03c2 \u03c3\u03c4\u03b7\u03bd \u03c0\u03c4\u03ce\u03c3\u03b7(drop)<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>\u03a4\u03bf Drag and drop \u03b1\u03c0\u03bf\u03c4\u03b5\u03bb\u03b5\u03af \u03bc\u03ad\u03c1\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03c0\u03c1\u03bf\u03c4\u03cd\u03c0\u03bf\u03c5 HTML5.<\/p>","protected":false},"author":1,"featured_media":1205,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[110,35,111],"class_list":["post-2060","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development","tag-drag-and-drop","tag-html5","tag-html5-drag-and-drop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML5 Drag &amp; Drop - StigmaHost<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/stigma.host\/en\/html5-drag-drop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML5 Drag &amp; Drop - StigmaHost\" \/>\n<meta property=\"og:description\" content=\"\u03a4\u03bf Drag and drop \u03b1\u03c0\u03bf\u03c4\u03b5\u03bb\u03b5\u03af \u03bc\u03ad\u03c1\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03c0\u03c1\u03bf\u03c4\u03cd\u03c0\u03bf\u03c5 HTML5.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stigma.host\/en\/html5-drag-drop\/\" \/>\n<meta property=\"og:site_name\" content=\"StigmaHost\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stigmahost\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-05-19T12:56:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-02T07:12:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/stigma.host\/wp-content\/uploads\/2026\/08\/cac-e1742289036332.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"114\" \/>\n\t<meta property=\"og:image:height\" content=\"64\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@StigmaHost\" \/>\n<meta name=\"twitter:site\" content=\"@StigmaHost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/stigma.host\\\/#\\\/schema\\\/person\\\/7363eac4ff6c292f6c85a222927ddb67\"},\"headline\":\"HTML5 Drag &#038; Drop\",\"datePublished\":\"2012-05-19T12:56:23+00:00\",\"dateModified\":\"2026-11-02T07:12:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/\"},\"wordCount\":91,\"publisher\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/stigma.host\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/cac-e1742289036332.jpg\",\"keywords\":[\"drag and drop\",\"html5\",\"HTML5 drag and drop\"],\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/\",\"url\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/\",\"name\":\"HTML5 Drag & Drop - StigmaHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/stigma.host\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/cac-e1742289036332.jpg\",\"datePublished\":\"2012-05-19T12:56:23+00:00\",\"dateModified\":\"2026-11-02T07:12:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/#primaryimage\",\"url\":\"https:\\\/\\\/stigma.host\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/cac-e1742289036332.jpg\",\"contentUrl\":\"https:\\\/\\\/stigma.host\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/cac-e1742289036332.jpg\",\"width\":114,\"height\":64},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/stigma.host\\\/html5-drag-drop\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/stigma.host\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5 Drag &#038; Drop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/stigma.host\\\/#website\",\"url\":\"https:\\\/\\\/stigma.host\\\/\",\"name\":\"StigmaHost\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/stigma.host\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/stigma.host\\\/#organization\",\"name\":\"StigmaHost\",\"url\":\"https:\\\/\\\/stigma.host\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/stigma.host\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/stigma.host\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/exec-2c11dfea-6bcd-45d7-a7c2-9339fd39a6f1.png\",\"contentUrl\":\"https:\\\/\\\/stigma.host\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/exec-2c11dfea-6bcd-45d7-a7c2-9339fd39a6f1.png\",\"width\":2170,\"height\":725,\"caption\":\"StigmaHost\"},\"image\":{\"@id\":\"https:\\\/\\\/stigma.host\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/stigmahost\\\/\",\"https:\\\/\\\/x.com\\\/StigmaHost\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC1or-RrNEboHIVAYXxa7q8g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/stigma.host\\\/#\\\/schema\\\/person\\\/7363eac4ff6c292f6c85a222927ddb67\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf91064d91e3f93679bcc297d1ccdf20fc7ad4405e052756ec8e9886dad4f518?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf91064d91e3f93679bcc297d1ccdf20fc7ad4405e052756ec8e9886dad4f518?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf91064d91e3f93679bcc297d1ccdf20fc7ad4405e052756ec8e9886dad4f518?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/stigma.host\"],\"url\":\"https:\\\/\\\/stigma.host\\\/en\\\/author\\\/admin_jau9qzmk\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML5 Drag & Drop - StigmaHost","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/stigma.host\/en\/html5-drag-drop\/","og_locale":"en_US","og_type":"article","og_title":"HTML5 Drag & Drop - StigmaHost","og_description":"\u03a4\u03bf Drag and drop \u03b1\u03c0\u03bf\u03c4\u03b5\u03bb\u03b5\u03af \u03bc\u03ad\u03c1\u03bf\u03c2 \u03c4\u03bf\u03c5 \u03c0\u03c1\u03bf\u03c4\u03cd\u03c0\u03bf\u03c5 HTML5.","og_url":"https:\/\/stigma.host\/en\/html5-drag-drop\/","og_site_name":"StigmaHost","article_publisher":"https:\/\/www.facebook.com\/stigmahost\/","article_published_time":"2012-05-19T12:56:23+00:00","article_modified_time":"2026-11-02T07:12:12+00:00","og_image":[{"width":114,"height":64,"url":"https:\/\/stigma.host\/wp-content\/uploads\/2026\/08\/cac-e1742289036332.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@StigmaHost","twitter_site":"@StigmaHost","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/stigma.host\/html5-drag-drop\/#article","isPartOf":{"@id":"https:\/\/stigma.host\/html5-drag-drop\/"},"author":{"name":"admin","@id":"https:\/\/stigma.host\/#\/schema\/person\/7363eac4ff6c292f6c85a222927ddb67"},"headline":"HTML5 Drag &#038; Drop","datePublished":"2012-05-19T12:56:23+00:00","dateModified":"2026-11-02T07:12:12+00:00","mainEntityOfPage":{"@id":"https:\/\/stigma.host\/html5-drag-drop\/"},"wordCount":91,"publisher":{"@id":"https:\/\/stigma.host\/#organization"},"image":{"@id":"https:\/\/stigma.host\/html5-drag-drop\/#primaryimage"},"thumbnailUrl":"https:\/\/stigma.host\/wp-content\/uploads\/2026\/08\/cac-e1742289036332.jpg","keywords":["drag and drop","html5","HTML5 drag and drop"],"articleSection":["Web Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/stigma.host\/html5-drag-drop\/","url":"https:\/\/stigma.host\/html5-drag-drop\/","name":"HTML5 Drag & Drop - StigmaHost","isPartOf":{"@id":"https:\/\/stigma.host\/#website"},"primaryImageOfPage":{"@id":"https:\/\/stigma.host\/html5-drag-drop\/#primaryimage"},"image":{"@id":"https:\/\/stigma.host\/html5-drag-drop\/#primaryimage"},"thumbnailUrl":"https:\/\/stigma.host\/wp-content\/uploads\/2026\/08\/cac-e1742289036332.jpg","datePublished":"2012-05-19T12:56:23+00:00","dateModified":"2026-11-02T07:12:12+00:00","breadcrumb":{"@id":"https:\/\/stigma.host\/html5-drag-drop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/stigma.host\/html5-drag-drop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/stigma.host\/html5-drag-drop\/#primaryimage","url":"https:\/\/stigma.host\/wp-content\/uploads\/2026\/08\/cac-e1742289036332.jpg","contentUrl":"https:\/\/stigma.host\/wp-content\/uploads\/2026\/08\/cac-e1742289036332.jpg","width":114,"height":64},{"@type":"BreadcrumbList","@id":"https:\/\/stigma.host\/html5-drag-drop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/stigma.host\/"},{"@type":"ListItem","position":2,"name":"HTML5 Drag &#038; Drop"}]},{"@type":"WebSite","@id":"https:\/\/stigma.host\/#website","url":"https:\/\/stigma.host\/","name":"StigmaHost","description":"","publisher":{"@id":"https:\/\/stigma.host\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/stigma.host\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/stigma.host\/#organization","name":"StigmaHost","url":"https:\/\/stigma.host\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/stigma.host\/#\/schema\/logo\/image\/","url":"https:\/\/stigma.host\/wp-content\/uploads\/2026\/11\/exec-2c11dfea-6bcd-45d7-a7c2-9339fd39a6f1.png","contentUrl":"https:\/\/stigma.host\/wp-content\/uploads\/2026\/11\/exec-2c11dfea-6bcd-45d7-a7c2-9339fd39a6f1.png","width":2170,"height":725,"caption":"StigmaHost"},"image":{"@id":"https:\/\/stigma.host\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stigmahost\/","https:\/\/x.com\/StigmaHost","https:\/\/www.youtube.com\/channel\/UC1or-RrNEboHIVAYXxa7q8g"]},{"@type":"Person","@id":"https:\/\/stigma.host\/#\/schema\/person\/7363eac4ff6c292f6c85a222927ddb67","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bf91064d91e3f93679bcc297d1ccdf20fc7ad4405e052756ec8e9886dad4f518?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bf91064d91e3f93679bcc297d1ccdf20fc7ad4405e052756ec8e9886dad4f518?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bf91064d91e3f93679bcc297d1ccdf20fc7ad4405e052756ec8e9886dad4f518?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/stigma.host"],"url":"https:\/\/stigma.host\/en\/author\/admin_jau9qzmk\/"}]}},"_links":{"self":[{"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/posts\/2060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/comments?post=2060"}],"version-history":[{"count":1,"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/posts\/2060\/revisions"}],"predecessor-version":[{"id":6435,"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/posts\/2060\/revisions\/6435"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/media\/1205"}],"wp:attachment":[{"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/media?parent=2060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/categories?post=2060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stigma.host\/en\/wp-json\/wp\/v2\/tags?post=2060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}