Window.ondragdrop (Property)

This event handler is called when an object is dropped into the browser window.


JavaScript - 1.2
Netscape - 4.0
Property/method value type:Function object
JavaScript syntax:-myWindow.ondragdrop
-myWindow.ondragdrop = aHandler
-ondragdrop = aHandler
HTML syntax:<BODY onDragDrop="aHandler"> <FRAMESET onDragDrop="aHandler">
Argument list:aHandlerAn event handler function object

This event handler is invoked when the user drags an item onto a window in Netscape Navigator.

To access the details of the entity that has been dragged into and dropped on the window, you need to access the data property of the event object that is passed as an argument to the handler when it is called.

The data is a single URL when a single entity is dropped into the window or an array of strings, each containing an URL, when a collection of entities are dropped onto a window.

You will need UniversalBrowserRead privilege to access this data.

The handler is registered either by assigning a function to the ondragdrop property or by defining it with an HTML tag attribute.


See, onDragDrop

Property attributes: