I am creating a Tampermonkey keyboard navigation script in Javascript for a website that I use (I do not own the site so I can't make any changes to it myself). If the website has the following code:
<a href="/page/2.html">Next »</a>
to get the next page, how would I retrieve the "/page/2.html" part by searching the website for "Next"? Thank you much for your time!
Edit: I have done this before and I know what I ask is possible. The only portion of the website that is used for this code, I have listed above. I only wish to use the inner HTML "Next" and nothing else. What is shown above is exactly what is on the HTML file for the website.