Menu
Horje
Hi !
Welcome,
Guest
Close Menu
Home
Web Tutorial
HTML Drag and Drop API
What browsers will support HTML Drag and Drop
How to create HTML Drag and Drop Example
How to Make an Element Draggable
What to Drag - ondragstart and setData()
Where to Drop - ondragover
Example of Drop - ondragover
How to Do the Drop - ondrop
How to drag and drop an image from left to right
Home
Web Tutorial
Full Course
English Tutorial
HTML
HTML Drag and Drop API
Example of Drop - ondragover
Example of Drop - ondragover
This is done by calling the event.preventDefault() method for the ondragover event:
index.html
Example:
HTML
<script> event.preventDefault() </script>
Try Now
Output should be:
Next
Previous
Type
:
html
Category
:
Web Tutorial
Sub Category
:
HTML Drag and Drop API
Uploaded by
:
Admin