<title>Related Elements Example</title>
<script type="text/javascript" src="/upload/files/201702/EventUtil.js"></script>
<div id="myDiv" style="background-color:red;height:100px;width:100px">Move the mouse from here to the white</div>
<script type="text/javascript">
var div = document.getElementById("myDiv");
EventUtil.addHandler(div, "mouseout", function(event){
event = EventUtil.getEvent(event);
var target = EventUtil.getTarget(event);
var relatedTarget = EventUtil.getRelatedTarget(event);
alert("Moused out of " + target.tagName + " to " + relatedTarget.tagName);