File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Drag and Drop in Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Drag and Drop in Javascript" Watch "Drag and Drop in Javascript" New topic

Drag and Drop in Javascript

Pavan Kumar Dittakavi
Ranch Hand

Joined: Feb 12, 2011
Posts: 105

Hello All..

Is it possible to write javascript code that say enables drag and drop of links in google search results?

Thing is we need to enable drag and drop support between an SWT based client and a web-based client. So, wanted to know if this is possible.

Please suggest.

Thanks, Pavan.
Rob Crowther
Ranch Hand

Joined: Nov 06, 2012
Posts: 297

Links are already draggable and droppable without JavaScript.

Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
Anna Harris

Joined: Aug 21, 2012
Posts: 13
Yes, javascript Support for Drag and Drop operations.It may be applied to individual elements on your HTML page. For drag operations, an element can handle the following JavaScript events:
» ondragstart
» ondragover
» ondragleave
» ondrop

For more detail Please visit:
I agree. Here's the link:
subject: Drag and Drop in Javascript
It's not a secret anymore!