Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Custom JavaScript Event Manager (CJEM)

, 3 Aug 2011 GPL3
A Custom JavaScript Event Manager Class Designed to Manage Window, Document and Control Events on a Webpage
<html>
<head>
  <title>Custom JavaScript Event Manager (CJEM) - Example 6 (Bubbling Events)</title>
  <script type="text/javascript" src="js/cjem.js"></script>
  <script type="text/javascript" src="js/example6.js"></script>
</head>
<body>
  <h2>Custom JavaScript Event Manager (CJEM) - Example 6 (Bubbling Events)</h2>
  <p>When you click on the span 1 the event will bubble through to the document.</p>
  <p><span style="border: 1px solid black; cursor: default; padding: 5px;" id="span1">Span 1</span></p>
  <p>When you click on span 2 the event will not bubble through to the document.</p>
  <p><span style="border: 1px solid black; cursor: default; padding: 5px;" id="span2">Span 2</span></p>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

Share

About the Author

M@dHatter
Software Developer (Senior) Codevendor
United States United States
Please visit my personal website http://www.codevendor.com for my latest codes and updates.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411019.1 | Last Updated 4 Aug 2011
Article Copyright 2011 by M@dHatter
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid