Abakada HTML Demo: ondragstart Event Example


The ondragstart event occurs when the user first starts to drag a text selection or selected object.

Select and drag any text on this document.

This is a span

An online event handler in the BODY tag of this document detects the tagName of the object from which the ondragstart has originated. Because the event bubbles, it can be handled at the BODY level.


View Source   Exit

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.