title: Arbor Js - Node Onclick?
body: <p>I'm using <a href="http://arborjs.org/" rel="nofollow noreferrer">arbor.js</a> to create a graph.</p>
  
  <p>How do I create an <code>onclick</code> event for a node, or make a node link somewhere upon being clicked?</p>
  
  <p>The Arborjs.org homepage has nodes which link to external pages upon being clicked, how do I replicate this, or make the node call javascript function upon being clicked?</p>
  
  <p>My current node and edges listing is in this format: </p>
  
  <pre><code>var data = {
      nodes:{
          threadstarter:{'color':'red','shape':'dot','label':'Animals'},
          reply1:{'color':'green','shape':'dot','label':'dog'},
          reply2:{'color':'blue','shape':'dot','label':'cat'}
      },
      edges:{
          threadstarter:{ reply1:{}, reply2:{} }
      }
  };
  sys.graft(data);
  </code></pre>
  
  <p>A bit of context:
  I'm using arbor.js to create a graph of thread starters and replies on my forum.
  I've got it working so that id's are displayed 'in orbit' around their respective thread starter.</p>
  
  <p>The reference on the arbor site is really not very helpful.
  Any help is much appreciated.</p>