title: Save content of div with local storage, and display on another page
body: <p>I am trying to grab the contents of a <code>&lt;div&gt;</code> on a page on page load, and save it to localstorage. </p>
  
  <p>When someone visits the homepage again, I would like the contents of this <code>div</code> to be displayed.</p>
  
  <p>Whilst I can get functions to work with the use of form input fields and a submit, I cannot find a way to get this working using just  contents and page load.</p>
  
  <p>Any help appreciated!</p>
  
  <p>Many thanks</p>