O'Reilly logo

Rapid Application Development with Mozilla™ by Nigel McFarlane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15.5. Scripting

A bound tag looks like any other DOM object to JavaScript. Scripts originating from the bound side of the tag can act on the bound tag's object in a number of standard ways:

  • Properties can be invoked as methods, or assigned to, or read.

  • Properties can be added or set to null.

  • Properties that hold methods (Function objects) can be changed to user-defined methods.

  • Event handlers lodged with on… style attributes, or via the DOM 2 addEventListener() method, can override handlers in the binding.

  • DOM 1 interfaces can set and unset attributes on the bound tag.

  • DOM 1 interfaces can modify the final merged content of the bound tag.

None of these actions affects the XBL binding specification for a bound binding.

The most significant issue for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required