title: Insert javascript variable as background image source
body: <p>I have a variable that I can display on the page by using the following
      <code>&lt;script&gt;document.write(image)&lt;/script&gt;</code></p>
  
  <p>I can copy the result to the browser and it displays the file I require.</p>
  
  <p>What I want to do is to take that variable and use it to specify the src of my background image</p>
  
  <pre><code>`&lt;p style="background-image: url(**image**);"&gt;`
  </code></pre>
  
  <p>I know that this is probably simple to you guys, but I have spent the whole day and am losing a lot of hair over this one. Thanks for your time....</p>