Is there any way to bookmark or link to a section of a page without an anchor?
how to link to a specific part of someone else's page
how to create links to sections on the same page in html w3schools
how to redirect to a particular section of a page in html
link to internal sections of a page with anchor elements
link a div to a particular section on a different page in html
link to anchor in the text
how to create an anchor link
Is there any way to bookmark or link to an HTML page (which I am not author of) without having an anchor in the html code ?
I want the page to get scrolled down to a particular section when accessed from a bookmark or hyperlink even if there is no anchor tag in the destination page.
Note : the destination page has an anchor tag as "foo" then bookmark like
http:/...hello.html#foo will not only take the user to hello.html but also automatically scroll down to the section of the page so that the anchore tag "foo" is at the top of the screen
You only need to have the appropriate id attribute on an element to use it like a bookmark...
<a href="#test">Test</a> ... <p id="test">Hello world</p>
Older specifications also allowed navigation based on the
name attribute, but this attribute has been removed from the latest HTML specifications (but if there is a
name attribute it may be used in the same way as an
If there is no
name attribute where you wish to navigate to, there is no way of navigating to the specific point within the page, only to the page itself. In this case you may want to quote the pertinent information and supply a citation with a link or perhaps ask the author if they would add an
How Do I Link to Different Sections on the Same Page? (HTML Editor), How do you make an anchor link jump to a specific part of a page? Is there any way to bookmark or link to an HTML page (which I am not author of) without having an anchor in the html code ? I want the page to get scrolled down to a particular section when accessed
If everything else fails, you can use get the query from the
window.location, use jQuery to get the DOM element, ask for it's position and
scrollTop to move there (see jQuery scroll to element)
How to Create an Anchor Link to Jump to a Specific Part of a Page, , and in the URL Field, enter #targetname, where targetname is the name of your target. In our example, we would enter #jsmith. Click Insert Link. In the window that opens, click Bookmarks. A list will show the bookmarks in your document. Click the bookmark you want to link to Apply. To remove the link or bookmark, click it, then click Remove.
The Chrome extension Any Link does exactly what you want.
It enables you to create links to any selected texts in any web pages with only 3 steps:
- select the text you want to link/highlight
- right click to show the context menu
- click the
link to textmenu item.
The link to the text will be generated at background and copied to clipboard right away, you can then paste the link anywhere or make a bookmark with the link.
You can find the extension here: https://chrome.google.com/webstore/detail/any-link-safereliable-lin/mpflpgaobfpjcpefkdnpalfdodifkkgc
The Firefox extension "Web Marker" does exactly what you want.
You can find its source code and documentation here:
There is a relatively recent W3C Working Group Note on Selectors and States which would allow linking to selected text.
Here is a Firefox webextension partially implementing the link format (allowing you to "create" a link, based on the selection, as well as, obviously, open such a link, highlighting the correct selection):
As of 2019 it seems to work fine.
Its source code is available here.
Linking without Anchors, The best part about it all is that it's super easy to do yourself, even if you If you use a phrase, there should be no spaces -- use underscores Take the name you've chosen and insert it into an opening HTML anchor link tag. Make sure your “Section 1” text is still highlighted, click on Link Tools from the editing menu. IN the bookmark text box, enter in “section 1” as this is the name that you gave to the bookmark in your first heading link.
Links in HTML documents, So the problem is that without using anchor tag how can I scroll the page to the respective section when I click on any tab. You say that you are removing the link, so instead, you will need to add a click event If I bookmark a particular section of a page it's because that is the section I want to go to, else I Subscribe to Compete Themes on Youtube. In order to link to a specific part of a page, you need to do two things. 1. Add a point to link to. First, you need a way to mark a place in the page. We’ll do this by adding an ID attribute to a heading element on the page. Don’t worry, it’s easier than you think. 2. Link to that specific point
Creating anchor links – Squarespace Help, Is there a way to deep-link to a specific paragraph in an html page that others, without a convient anchor tag to isolate from the rest of the page. To use it, just drag the link to your bookmark toolbar and click on it when In CSS, " id " is a selector that may be used to designate an area that a link should point to, similar to anchor in HTML. The nice thing about using id is that you can create a link to any element on the page, rather than only the top or bottom. In the following sections, you'll see how to apply id to an HTML tag, and then how to link to it.
Mastering XPages: A Step-by-step Guide to XPages Application , The value of this attribute must be a unique anchor name. Please consult the section on character encodings for more details. Authors may also create an A element that specifies no anchors, i.e., that doesn't This link designates the home page of the World Wide Web Consortium. I am not aware of MS-Word having support for this, but if your PDF contains so called 'named destinations' (not just PDF bookmarks although they may both the present) then you can specify the 'named destination' on the URL.
- After reviewing my original thought, if the Link is on another domain window.scrollTo will not be allowed XSS
- Should this work in any modern browser? I saw (stackoverflow.com/questions/484719/html-anchors-with-name-or-id/…) it's not supported in NS4 (well, who cares) but how about IE6?
- It works in IE6. (but you should not support anything that you are not able to test)
- Are there any tricks which can link to an element that doesn't have an ID?
- I'd like to link to a section in a page which isn't under my control and which has neither "id"s nor "name"s. See e.g. the various sections at codinghorror.com/blog/2012/07/new-programming-jargon.html I can't think of how to make that work...
- I agree. Please could you add something about that to your answer? The q explicitly calls out "I am not author", but the best answer (yours) doesn't address what to do if there are neither "name" nor "id" attributes.
- can you give an example?
- Thanks but the web page says "Not compatible with Firefox Quantum" as of today. and also it says it was "Last updated 6 years ago (Feb 15, 2012)" :(