Availability: |
| |||
Property/method value type: | Function object | |||
JavaScript syntax: | - | myWindow.ondragdrop | ||
- | myWindow.ondragdrop = aHandler | |||
- | ondragdrop | |||
- | ondragdrop = aHandler | |||
HTML syntax: | <BODY onDragDrop="aHandler"> <FRAMESET onDragDrop="aHandler"> | |||
Argument list: | aHandler | An 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 also: | Event.data, onDragDrop |
Prev | Home | Next |
Window.onblur | Up | Window.onerror |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |