Eros eros Posted May 12 Share Posted May 12 hi guys, if after pressing close (after reading the whole text) I wanted to go back to the precise point where the read more is, how to do it? Link to comment Share on other sites More sharing options...
Andrei H Posted May 13 Share Posted May 13 Hello, You can try and look into the scrollIntoView() method for that - https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView In the existing listener for the close button, target the sibling 'Read more' button, then scroll to it using the highlighted method. Link to comment Share on other sites More sharing options...
Eros eros Posted May 17 Author Share Posted May 17 Other solutions? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now