August 1999
Intermediate to advanced
1488 pages
72h 53m
English
event.data
The data property of the Event object references an array of strings for events of objects that have been dragged and dropped. Each string in the array contains a URL representing the dropped object. The data property can be read only if the script has the UniversalBrowserRead privilege.
Listing 7.203 shows an example of how the data property can be used to determine the URL of objects that have been dragged and dropped. The example captures all DRAGDROP events and passes them to a function called handleDrapDrop(). The function extracts the data property from the event and outputs it.
<html> <head> <title>Example of ... |
Read now
Unlock full access