title: Javascript scroll down by vh
body: <p>If I want to use this JavaScript command:</p>
  
  <pre><code>window.scrollBy(0,50);
  </code></pre>
  
  <p>It scrolls 50px down the page.</p>
  
  <p>Is there a simple equivalent to scroll 50vh down the page? This doesn't work</p>
  
  <pre><code>window.scrollBy(0,50vh);
  </code></pre>
  
  <p>I saw this question <a href="https://stackoverflow.com/questions/29366616/scroll-down-page-by-the-height-of-current-viewport%20here">here</a> but is there a simpler way to do it?</p>