HTML5 drag and drop on the body
When the body element as a drop target on pages that don't have a lot of other content make sure to set:
html, body {
height: 100%:
}
If you don't you may not trigger the drag events due to the body being too short.
Written by Bala Clark
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Html5
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#