Categories:
Partners
Web Hosting
We've partnered with HostGator for reliable, affordable hosting starting at $3.95/mon. Use coupon code "javascriptkit25" for 25% off any package.

XBL

If you are asking yourself what XBL (eXtensible Binding Language) is, in short it is an XML language proprietary to Gecko-based browsers, and is sort of like IE's proprietary DHTML Behaviors, but more powerful. If you are still confused, just skip this section, it is not relevant to normal web design unless you are an übergeek.
Let's look at this XBL document:

<?xml version="1.0"?> 
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="mybinding"> 
<handlers>
<handler event="click">
<![CDATA[
// how do we get the event?
alert(event.type) // "click"
]]>
</handler>
</handlers> 
</binding>
</bindings>

When you click on an element bound with this binding, you'll get an alert saying "click". The variable event natively holds the event object whenever inside an XBL document.

Copyright © 1997-2014 JavaScript Kit. NO PART may be reproduced without author's permission.