I use named anchors as section links all the time, and it drives me nuts when I find a good resource on the web, but it's part of a longer page, and there are no anchors.
I want to send someone a link to "read this!", but it feels awkward saying "Read this, after you open the page hit ctrl-F and search for 'multiple messages' and that's the paragraph."
Is there a way to force the target of a link to jump to a particular part of the page, despite the author's omission?
1 Answer
It depends on the page if this is possible. The anchors are defined as ids within the source of a page. Even if the author did not provide links to sections, there might be some ids present at the page's source, which could be used as anchors. Let me explain through an example:
- Open the page you want to link to, e.g.
. - Press Ctrl+U to view it's source.
- Press Ctrl+F and search for
_id="(Replace the underscore by a space!), see example below:
- Any
idcan be used as a jump target. Search for one that is near to the section you want to link to, e.g.question. - Craft the link by appending
#IDto the page's URL:
Click here to try the example. However, if there are no id's, it is not possible.