title: How to get window id of the popup window that is created by chrome.windows.create()
body: <p>How to get window-id of the popup window that is created by chrome.windows.create()</p>
  
  <p><strong>background.html</strong></p>
  
  <pre><code>window_options={
  "url":"another_popup.html"
  "type":"popup"
  };
  
  chrome.windows.create(window_options,call_back_function)
  call_back_function(Window window)
  {
  console.log(window.id) 
  //prints the window's id properly
  }
  </code></pre>
  
  <p><strong>another_popup.html(the page that the popup window holds)</strong></p>
  
  <pre><code>$(document).ready(function()
   {
  console.log(window.id)
  //says ,cannot find property and gives a null 
   });
  </code></pre>