Output tag name from window event to status bar : Window Properties « Window Browser « JavaScript DHTML






Output tag name from window event to status bar

   

<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>
</body>
</html>

   
    
    
  








Related examples in the same category

1.Modifies the properties and the contents of the browser's windows
2.Access window properties
3.Displaying the Associative Properties Area of a Window Object
4.Change status bar with mouse click
5.Change window location
6.Open a new window and load new page
7.Set text for windows status bar
8.References to Window Objects
9.A Main Window Document
10.Open a new window with your own options
11.X/Y Marks the Spot for a popup window (IE)