If I want to use this JavaScript command:

```
window.scrollBy(0,50);

```

It scrolls 50px down the page.

Is there a simple equivalent to scroll 50vh down the page? This doesn't work

```
window.scrollBy(0,50vh);

```

I saw this question [here](https://stackoverflow.com/questions/29366616/scroll-down-page-by-the-height-of-current-viewport%20here) but is there a simpler way to do it?