title: Get Complete URL of Tab in Chrome Extension
body: <p>I'm trying to modify a chrome extension which uploads images to Picasa and labels them with the complete URL e.g. <strong>www.domain.com/whatever.jpg</strong>, of where they were uploaded from.</p>
  
  <p>I'm having problems with getting the complete URL.  When i try the following bit of code, it gives me an incomplete URL with only the <strong>whatever.jpg</strong>, and not the <strong>www.domain.com/</strong></p>
  
  <pre><code>...
  chrome.tabs.getSelected(null, function(tab) {
  var yourell = tab.url;
  ...
  </code></pre>
  
  <p>Anyone have any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Dave</p>