Checking support...
Feature Not SupportedThis browser does not support the Drag & Drop API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
element.addEventListener('drop', (e) => {
e.preventDefault();
const files = e.dataTransfer.files;
});About the Drag & Drop API Web API
HTML Drag and Drop API enables applications to use drag-and-drop features in browsers.
Specification:W3C & WHATWG Web API Standard
Sponsored Content