title: HTML range: set value attribute dynamically
body: <p>Good evening!!</p>
  
  <p>I'm using HTML input type range to create a slidebar.
  I would like to dynamically change the attribute "value" (default position of the cursor) before displaying the slidebar.</p>
  
  <p>I can retrieve the value I need (from localStorage) but I don't manage to set it!!</p>
  
  <p>Here is the range object:</p>
  
  <pre><code>&lt;input type="range" min="0" max="1050" value="0" step="30"  onchange="showValue(this.value); changeScrollBar(this.value);"/&gt;
  </code></pre>
  
  <p>Now it is set to 0 but I would like to use a variable to change it (i.e I'll set a new variable foo=localStorage.getItem("foo2") then I would like to use value=foo in range)!</p>
  
  <p>Any clue?</p>
  
  <p>Thanks a lot!!!</p>