Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. event.bubbles
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Notes
  4. 4. Example
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Notes
  4. 4. Example

« Gecko DOM Reference

Summary

Indicates whether the given event bubbles up through the DOM or not.

Syntax

bool = event.bubbles

bool contains true or false, depending on whether the event can bubble or not.

Notes

Only certain events can bubble. Events that do bubble have this property set to true. You can use this property to check if an event is allowed to bubble or not.

Example

 function goInput(e) {
  // checks bubbles and
  if not e.bubbles {
     // passes event along if it's not
     passItOn(e); 
  }
  // already bubbling
  doOutput(e)
}


Page last modified 21:13, 3 Jan 2008 by Mgjbot

Files (0)