| • Science | • People | • Locations | • Timeline |
An XBL file contains bindings. Each of them describes the behavior of a XUL widget. For example, a binding might be attached to a scroll bar. The behavior describes the properties and methods of the scroll bar and describes the XUL elements defining the scroll bar.
The root element of an XBL file is the element. Each element declares one binding, which can be attached to any XUL element. It also may have an attribute. A binding is assigned to an element by setting the CSS property to the URL of the bindings file. For example:
where #binding1 is the of the binding.