Make it possible to copy drag-and-drop data. This link will help you with the task.
Drag and Drop
Copying data
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html>
<body>
<div id="draggable" draggable="true" ondragstart="dragStartHandler(event)">Drag me</div>
<script>
function dragStartHandler(event) {
// Add your code here
}
</script>
</body>
</html>
Completed 1 of 2
Make it possible to copy drag-and-drop data
The code is correct
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.