I would like to know how to do so that at the moment you load the content of the html, the scroll ends in a random position.
the functions are these
> function scrollWin(a,b) {
> window.scrollTo(a,b);
> }
>
>
> function aleatorio(a,b) {
> return Math.round(Math.random()*(b-a)+parseInt(a));
> }
and I call her with
scrollWin (aleatorio (0,0),aleatorio (500,1000))
I think of some function with the scroll, so that when loading the html it appears randomly in any position of the document.