title: How do you call url from localStorage
body: <p>I want to save a url to localStorage- on a settings page. Then I need a hyperlink or a button that when clicked, goes to that url. Trying not to use jquery.</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Local Storage URL&lt;/title&gt;
  
  &lt;script type="text/javascript"&gt; 
  function save() {
      var myURL = document.getElementById('url');
      localStorage.setItem('url', myURL.value);
  }
  
  function load() {
      var storedValue = localStorage.getItem('url');
      if(storedValue) {
          document.getElementById('url').value = storedValue;
      }
  }
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body onLoad="load()"&gt;
  &lt;input type="text" id="url" /&gt;
  &lt;input type="button" value="save" onclick="save()" /&gt;
  &lt;p&gt;
  &lt;-- Here is where I am stuck below --&gt;&lt;br&gt;
  &lt;a href="('myUrl')"&gt;Link to localStorage Address&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;    
  </code></pre>