I tried window.scrollTo([0, 1000])
but Always back to top.
Another one tried window.scroll([0, 1000])
.
scroll is keeping.
I wanted it.
Why window.scrollTo
?
I tried window.scrollTo([0, 1000])
but Always back to top.
Another one tried window.scroll([0, 1000])
.
scroll is keeping.
I wanted it.
Why window.scrollTo
?
For further actions, you may consider blocking this person and/or reporting abuse
Aral Roca -
keploy -
iProgrammer Solutions Pvt. Ltd. -
James -
Top comments (3)
The issue you may be running into is that both
scroll
andscrollTo
take an x-coord and a y-coord independently, not anArray
.Nice, I tried to figure this out but I got caught up in the syntax, too.
I see... I I misunderstood.
Thank you.