'onDrop' Example : onDrop : Event onMethod JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event onMethod » onDrop »

 

'onDrop' Example



    
<html>
<head>
<script language="JavaScript">
<!--
function function1() {
  msg = 'on' + event.type + ' event fired by ' + '"' + event.srcElement.id + '"'
  alert(msg

--> 
</script>
</head>
<body bottommargin=150>
  <p>Source object: 
<input id="sourceObject" size=50 value="The text to Drag" ondrop="function1()">
<br>
  </p>
  <p>Drop selected text into the text field.</p>
  Target object: 
<input id="targetObject" size=50 value="Drag destination element"
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event onMethod
» onDrop