Horje

Example of HTML ondrag Event Attribute

It will Execute a JavaScript when a <p> element is being dragged.
index.html
Example: HTML
 <p draggable="true" ondrag="myFunction(event)">Drag me!</p> 

Output should be:

Example of HTML ondrag Event Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Drag Events Attribute
Uploaded by:
Admin