How can I achieve the function of jumping to a specified line?

for example, a text input comes in, and I now judge that it has 50 lines on the page, and now I click the button to pop up an input box to enter any number less than 50, such as 48, so how do I make the page jump and navigate to 48 lines?

Mar.17,2021

think about it and do it.


get the number of lines of text, 48: number of lines, and then highlight


a tag anchor to try

Menu