Code: Select all
<html>
<head>
<script type='text/javascript'>
function getId(id){
alert(id);
}
</script>
<body>
<div id='holder' onMouseOut='getId(this.id)' style='width:100; height:100; border:2px solid black;'>
<div id='inside1' style='cursor:pointer;'>Text1</div>
<div id='inside2' style='cursor:pointer;'>Text2</div>
</div>
</body>
</html>