title: How to get background image URL of an element using JavaScript?
body: <p>How would I get the <code>background-image</code> URL of a <code>&lt;div&gt;</code> element in JavaScript?
  For example, I have this:</p>
  
  <pre><code>&lt;div style="background-image:url('http://www.example.com/img.png');"&gt;...&lt;/div&gt;
  </code></pre>
  
  <p>How would I get <strong>just</strong> the URL of the <code>background-image</code>?</p>