window.event.srcElement.tagName : srcElement « Event « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
function tagInfo()
{
    var tag;
    tag = window.event.srcElement.tagName;
    window.status = tag;
}

//  -->
</script>
</head>
<body onMouseover="tagInfo()">
<h1>Heading One</h1>
<P>Some text</p>
<h2>Another heading</h2>
<P>More text and some <b>bold</b> text</p>
<h3>Another heading</h3>
<P>More text and some <i>italics</i> text</p>
</body>
</html>








15.5.srcElement
15.5.1.window.event.srcElement.tagName
15.5.2.Get event source element name and id