title: Chrome extension; How to get all tabs, store tab info to array?
body: <p>I would like to take all the windows/tabs from chrome and store the titles/urls to a localstorage array to access later. </p>
  
  <p>I currently have the code below, but it is stopping after the <code>alert</code> and returning <code>"tab is undefined"</code> and I can't figure it out! Am I completely off base here?</p>
  
  <pre><code>function asdf()
  {
  
    chrome.windows.getAll({"populate" : true}, function(windows)
  
    {
  
      for(var i = 0; i &lt; windows.length; i++)
      {
        for(var j = 0; j &lt; windows[i].tabs.length; j++)
        {
          original.push(new tabInfo(windows[i].tabs[j], j));
          alert(original[i*j].tab.title);
          original[i*j].tab.title = tab.title;
          original[i*j].tab.url = tab.url;
          original[i*j].tab.status = tab.status;
          original[i*j].count = 0;
  
          localstorage.setitem["tab.title"];
          localstorage.setitem["tab.url"];
          localstorage.setitem["tab.status"];
         }
      }
    });
  </code></pre>