topical media & game development

talk show tell print

professional-javascript-13-SystemDragAndDropExample11.htm / htm

          <title>System Drag And Drop Example</title>
          <script type="text/javascript">
              function handleMouseMove(oEvent) {
                  if (oEvent.button == 1) {
              function handleDragDropEvent(oEvent) {
                  oEvent.dataTransfer.setData("URL", "");
          <p>Try dragging the red square into another browser window.</p>
          <p><div style="background-color: red; height: 100px; width: 100px"
                  ondragstart="handleDragDropEvent(event)">> </p>

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.