# JavaScript Bs_Tree example 2

tree similar to example 1. the special things here are:

- the built-in auto-sequence system is deactivated, every node has a pre-defined id.
- the caption "yahoo sports" has an onclick event attached, which fires the user-defined js function named "blah()". this function just alerts the string 'blah', try it.
- because of the onclick event this node gets set to 'active', and gets a yellow background color (default behavior).
- events like "open folder" and "click caption" and pretty much everything else can be called from script. that is demonstrated here with the text links.

open up the 'yahoo sports' folder
fire the 'yahoo sports' onClick event