Drag Drop JavaScript Tutorial

< html>
    
        System Drag And Drop Example
        
            function handleDragDropoEvent(oEvent) {
                switch(oEvent.type) {
                    case "drop":
                        oEvent.returnValue = false;
                        oEvent.srcElement.innerHTML = oEvent.dataTransfer.getData("text");
                }
            }
        
    
    
        

Try dragging the text in the textbox to the right textbox.


        


                       ondragover="handleDragDropoEvent(event)"
               ondrop="handleDragDropoEvent(event)">