JavaScript DHTML/Event onMethod/onDragLeave
Версия от 10:02, 26 мая 2010; (обсуждение)
"onDragLeave" Example
<html>
<head>
<script language="JavaScript">
<!--
function function1() {
msg = "on" + event.type + " event fired by " + """ + event.srcElement.id + """;
alert(msg+"\nPress Enter twice to close this window")
}
-->
</script>
</head>
<body bottommargin=150>
<p>Source object:
<input id="sourceObject" size=50 value="The text to Drag" ondragleave="function1()">
<br>
</p>
<p>Drop selected text into the following text field.</p>
Target object:
<input id="targetObject" size=50 value="Drag destination element">
</body>
</html>