'onMoveStart' Example : onMoveStart « Event Handlers Reference « JavaScript Reference

'onMoveStart' Example

    
<html>
<head>
<script language="JavaScript">
<!--
    // Turn on 2-D positioning
    document.execCommand("2D-position",false,true); 
    function function1(){
        window.onmove = alert("The div element has been dragged"); 
    } 
--> 
</script>
</head>
<body bottommargin=150 onmovestart="function1()">
<div contenteditable="true">
<div style="width:300px;
            height:75px; 
            color:yellow; 
            background-color:black; 
            position:absolute;>Select and Drag me with the mouse.</div>
</div>
</body>
</html>

    
      
      








Related examples in the same category

1.'onMoveStart' Syntax and Note
2.'onMoveStart' Properties
3.'onMoveStart' is applied to