1

I know how to link to an anchor tag in my own code, and I also know how to link to another server's URL. However, If I want to create a (hyper)link in, say, a Word document, that will not only bring the user to a designated URL but will also scroll to a specific place on that HTML page specifically if I am NOT the developer of the page?

It doesn't look like this is possible, but I thought I'd ask.

Thanks.

bloomers
  • 255
  • 4
  • 12

2 Answers2

3

If I get your question correctly you can. To link to a specific section of a page, that has to be given a name with the <a name="hello"></a> and to link to that, lets have a dummy url to the page as: http://example.com/page. Now to link to that part specifically, just add #hello to the url, to give http://example.com/page#hello.

Donald Duck
  • 8,409
  • 22
  • 75
  • 99
booluw
  • 324
  • 5
  • 15
2

It's possible, provided there is somewhere in the page that you can anchor to. This would be the value of an element's name or id.

For more information, use the following link. Please note, I've included an anchor to the answers section in the URL. How to use HTML # anchor in a dynamic url

https://stackoverflow.com/questions/12096614/how-to-use-html-anchor-in-a-dynamic-url#answers
Donald Duck
  • 8,409
  • 22
  • 75
  • 99
J Smith
  • 147
  • 6