Horje

Example of HTML ondragstart Event Attribute

It will Execute a JavaScript when the user starts to drag a <p> element.
index.html
Example: HTML
 <p draggable="true" ondragstart="myFunction(event)">Drag me!</p> 

Output should be:

Example of HTML ondragstart Event Attribute




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