title: How to change Dojo TabContainer behaviour to simply open an external link instead of showing a ContentPane?
body: <p>I am working with a <code>TabContainer</code> having several different <code>ContentPane</code> children. Each of them is equipped with a <code>href</code> param to fetch external AJAX content shown when a tab is being selected:</p>
  
  <pre><code>dojo.addOnLoad(function() {
      var tc_nav = new dijit.layout.TabContainer({
          style: 'width: 98%;',
          doLayout: false
      }, 'tc_nav');
  
      var cp1 = new dijit.layout.ContentPane({
          title: 'Test 1',
          href: 'ajax?test1',
          style: 'padding: 10px;',
          selected: true
      });
  
      dojo.connect(cp1, 'onShow', function() {
          cp1.refresh();
      });
  
      /*
       * ...
       */
  
      tc_nav.addChild(cp1);
  
      /*
       * ...
       */
  
      tc_nav.startup();
  });
  </code></pre>
  
  <p>Now I want to integrate a tab among the others which should be different in its behaviour: Instead of loading content into a <code>ContentPane</code> the tab should follow a simple link in the same window (like a <code>&lt;a href="http://www.google.com/"&gt;Link&lt;/a&gt;</code>), leaving the page containing the js/dojo app. I didn't find any satisfying solution yet, nor a dojo widget matching this requirement. What would be the best approach?</p>
  
  <p>As an unpleasant workaround I created an overridden <code>onShow</code> event firing a <code>window.location.href = '...';</code>:</p>
  
  <pre><code>var cp2 = new dijit.layout.ContentPane({
      title: 'Test 2',
      style: 'padding: 10px;'
  });
  
  dojo.connect(cp2, 'onShow', function() {
      window.location.href = 'http://www.google.com/';
  });
  </code></pre>
  
  <p>An annoying disadvantage of this workaround is the fact the <code>ContentPane</code> is loaded first and afterwards the <code>window.location.href</code> is set, which leads to a quite peculiar lazy reload effect and consequently to a bad user experience. I would like to avoid this intermediate step.</p>