Abakada HTML Demo: Example of the getData Method


This example shows how to use the getData method of the dataTransfer object to drop text and dynamically update the innerText of the target object. Because the parameter text is the default for the setData method, it can be omitted as in this script sample.

select and drag this text

drop the text here

View Source   Exit

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