0

I have a web page with a single element: a canvas of 3000x3000 and I'd like to center the browser scroll in a point (with variable coordinates) . I'm starter with html and javascript, how can I do this?

1 Answer 1

2

Scroll a window: window.scrollTo(x, y)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.