SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2006
    Location
    south london
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I link / jump to a SPECIFIC section on a different page

    Hi All

    How do I link / jump to a SPECIFIC section on a different page. At present I have my first page which shows a list of towns (clickable links), when I click on e.g Sutton I get taken to Abingdon at the top of the page.

    What's the right HTML code to add to each area in the first and second page so it all works smoothly.

    Thanks in advance

  2. #2
    SitePoint Zealot
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A bookmark:
    Code:
    <a href="towns.htm#Sutton">Sutton</a>
    In the document towns.htm, the section on Sutton would contain an id with that name
    Code:
    <h2 id="Sutton">Sutton</h2>
    <p>Info about Sutton.</p>

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2006
    Location
    south london
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks DogFang, Perfect, thats exactly what I was after.

    Cheers Mate.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •