Please try the following code:
- <html>
- <head>
- <title>A Simple Page</title>
- <script language="JavaScript">
- <!--
- document.onclick = myfunc;
- function myfunc()
- {
- alert(window.event.srcElement.tagName)
- }
-
- // -->
- </script>
- </head>
- <body>
- <h1>Heading1</h1>
- <P>Paragraph</p>
- <h2>heading2</h2>
- <h3>heading3</h3>
- <div>div</div>
- </body>
- </html>
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx