title: Manipulation DOM with Chrome Extension
body: <p>in my Chrome Extension with a popup I want to open a certain number of tabs and after loading I want manipulate the DOM with variables.</p>
  
  <p>I can open the tabs but I cannot find a way to send my data to tab.</p>
  
  <p>Maybe the better way is to open the Url with the POST method and send the data directly?</p>
  
  <p>popup.js</p>
  
  <pre><code>$(document).ready(function () {
      "use strict";
      $('button').on('click', function () {
          chrome.tabs.create({ windowId: window.id, url: "http://www.url1.com" }
          // manipulate the dom/form data with 2 variables, which are given
          // var1 = xxx and var2 = yyy
          chrome.tabs.create({ windowId: window.id, url: "http://www.url2.com" }
          // manipulate the dom/form data with 2 variables, which are given
          // var3 = 123 and var4 = 678
  
      });
  });
  </code></pre>