I guess it is because that without dragOver event handler, default event handler of dragOver event is used, thus, no drop event is triggered after that. There is a need with e.preventDefault
for dragOver event before drop event.
More Related Contents:
- Checkbox Check Event Listener
- Popstate on page’s load in Chrome
- How do I load an HTML page in a div using JavaScript?
- How does the paste image from clipboard functionality work in Gmail and Google Chrome 12+?
- Document.write clears page
- How can I capture the right-click event in JavaScript? [duplicate]
- Is there an onSelect event or equivalent for HTML ?
- JSFiddle code not working in my own page
- How to pass parameter to function using in addEventListener?
- Javascript trick for ‘paste as plain text` in execCommand
- Onclick javascript to make browser go back to previous page?
- Jquery Event won’t fire after ajax call
- \u200b (Zero width space) characters in my JS code. Where did they come from?
- Chrome Autofill/Autocomplete no value for password
- How can I remove the “No file chosen” tooltip from a file input in Chrome?
- Is innerHTML asynchronous?
- How to clear cache of service worker?
- Animated gif only loops once in Chrome and Firefox
- Chrome FileReader
- HTML DOM: Which events do not bubble?
- Completely lost on how to save extension popup window content
- Looping through files for FileReader, output always contains last value from loop
- event.clipboardData.setData in copy event
- Resource interpreted as Script but transferred with MIME type text/plain – for local file
- How to use jQuery’s drop event to upload files dragged from the desktop?
- How to determine presence of HTML5 drag’n’drop file upload API (like the one from FF3.6)
- Print repeating Page headers in Chrome [closed]
- How do I listen for triple clicks in JavaScript?
- Fire oninput event with jQuery
- How to to initialize keyboard event with given char/keycode in a Chrome extension?