We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Localizing to Parts of A Webpage

AllHale
AllHale asked
on
Medium Priority
140 Views
Last Modified: 2010-04-25
I'm trying to set up links that will go to a certain part of a webpage and not just to the top. For example, in setting up a glossary - how would you set it up so that the link goes to a specific word on one page - like centering on "cell" instead of "acellular" which is at the top of the page. The links are on other pages of the site, but the words featured in the links are described on a glossary page. I just want people to be able to go to a specific part of the page and not have to skim the whole thing. I've seen this done before, so I know it can be done. Just don't know how. I would appreciate any help I can get.

Thanks for your time,

AllHale
Comment
Watch Question

CERTIFIED EXPERT
Commented:
It is possible using the anchor tag.  Find the text you want to link TO and add this code around it...

   <a name="myText">Link to this text</a>

Then wherever you want to start the link (where the user clicks to get to your word), use this...

   <a href="#myText">Go to text</a>

Or if its on another page entirely, you add the normal page's URL before the #...

   <a href="mytextpage.html#myText>Jump to text on another page</a>

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT

Commented:
Sorry, typo in the last one...

   <a href="mytextpage.html#myText">Jump to text on another page</a>
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.