<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<script type="text/javascript">
function dom() {
var body=document.getElementById('body'),
dom=body.getElementsByTagName('*');
for(var i in dom) {
dom[i].onmouseover=function(event) {
//event=fixEvent(event);
alert(event.target.tagName);
};
}
}
</script>
</head>
<body id="body" onload="dom()">
<div>
div
</div>
<span>
span
</span>
<ul>
<li>
li
</li>
</ul>
</body>
</html>