rem: var tree = document.getElementById("tree"); if( tree.selectedItems.length == 1 ) { var selectedItem = tree.selectedItems[0]; var url = selectedItem.getAttribute("URL");  window._content.location.href = url;   document.title = url; } 
add: var tree = document.getElementById("tree"); if (tree.currentIndex >= 0) { var item = tree.contentView.getItemAtIndex(tree.currentIndex); window._content.location.href = item.getAttributeNS(NC_NS, "url"); } 
context: function OnClick(event, node){    if( event.type == "click" &&        ( event.button != 0 || event.detail != 2 || node.nodeName != "treeitem") )      return(false);    if( event.type == "keypress" && event.keyCode != 13 )      return(false);    var tree = document.getElementById("tree");    if( tree.selectedItems.length == 1 ) {        var selectedItem = tree.selectedItems[0];        var url = selectedItem.getAttribute("URL");        window._content.location.href = url;                // set window title        document.title = url;    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e0d74dbab0591d49321454ee7cde5f57910c4047/directory.js/clean/suite/common/directory/directory.js