Currently, I am dealing with an exceptionally lengthy textual content page.
<p class="parahead">401. Heading </p>
<p>other html content</p>
<p class="c2">some more data</P>
...
<p class="parahead">402. Another heading </p>
<p>other html content</p>
...
Unfortunately, it is not feasible to assign an Id or name property to each of these paragraph elements. However, jQuery is present on the page. My query is whether it is achievable to navigate within the page based on the content of the paragraphs. I prefer not to add any additional tags dynamically as this may impede the page's loading speed.
update: To provide further insights into the issue - I have two HTML files, referred to as A and B. File A serves as the source while B contains explanations about A. During the scroll event in A, I can extract the content/id of the current paragraph within the viewport. Upon clicking a button within the wrapper around A, the user should be directed to the relevant section in B (comprising explanations related to A).