Last Updated: February 25, 2016
·
1.011K
· balaclark

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.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
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