Results 1 to 13 of 13
  1. #1
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Open a linked page at a certain location!

    Hi all,
    When adding a hyperlink in a post, is it possible to include a bookmark in the hyperlink, so that when a person follows the link it open at a certain position on the page (whether it be half way or 3/4 way down the page??) If a long page loads it would be nice to have it open at the location and prevent the person from having to scroll to the correct location!

    Any ideas?
    Tx
    Regards,
    Rudi

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Open a linked page at a certain location!

    It depends on whether or not the page you are linking to has bookmarks in it.

    For example, a link to a particular point in a page will have
    #bookmarkhere
    at the end of it.

    Example: http://news.bbc.co.uk/1/hi/magazine/4434926.stm#Monday
    takes you directly to the Monday section - or it should!

  3. #3
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Open a linked page at a certain location!

    How will I know whether or not the page has bookmarks in it?

    Do I look at its source, or guess it??
    Regards,
    Rudi

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Open a linked page at a certain location!

    It works in IE, but not FF - I assume it is in the coding <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

    This bookmark at Microsoft seems to work OK:
    http://support.microsoft.com/?kbid=270623#appliesto

  5. #5
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Open a linked page at a certain location!

    Didn't work in my FF, Leif. Any idea why? BTW I checked the page source and there IS a "name=Monday" entry, along with others. I've never used a URL bookmark before (that I've noticed!) - is your syntax correct?

    Edited: Please forget that syntax question. I just checked on a link here in The Lounge and it works on my test, so I'll now go back to your BBC page to see if I screwed it up.

    Edited again: I thought Leif was about to jump back in. There is a tad of a problem with the link. Evidently the "name=" tag is case sensitive. If I change the URL you provided to "...#monday" the link works. Rudi, yes, you would either need to know in advance what the names of the bookmarks are, or do as I did and view the page source looking for "name="

  6. #6
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Open a linked page at a certain location!

    Usually bookmarks are linked to at the top of the page they are on - i.e. there will be a list of 'contents' and clicking on a link will take you to that bookmark.

    See this MS Page and note at the top there is a link: View products that this article applies to.
    (This bookmark does work in FF.)

    Other than that, you might have to search the source code to find if there are any there. With FF, you can see all links in a page (Tools > Page Info > Links) but these only show the links, not the bookmarks themselves.

  7. #7
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Open a linked page at a certain location!

    Tx BigLeif and Al,

    This may come in handy when I post links on this site!

    Cheers
    Regards,
    Rudi

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Open a linked page at a certain location!

    If you are using Firefox or have the old IE5 web developer accessories install, you can select around the area where you want to jump and then right-click and view selection source. As noted above, you're looking for a tag in the format <a name="bookmark">, or possibly <a id="bookmark">.

  9. #9
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Open a linked page at a certain location!

    Oh...that will be useful. Selecting an area and viewing its source. Based on your answer I'm assuming this is not available for IE6? (and its web developer accessories)
    Regards,
    Rudi

  10. #10
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Open a linked page at a certain location!

    [engage cheeky mode]
    Who cares? Get Firefox!
    [disengage cheeky mode]
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

  11. #11
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Open a linked page at a certain location!

    <img src=/S/bash.gif border=0 alt=bash width=35 height=39>
    you asked 4 it
    Regards,
    Rudi

  12. #12
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Open a linked page at a certain location!

    Although they weren't updated for IE6, they still work with IE6. Sorry for leaving that part out.

  13. #13
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Open a linked page at a certain location!

    You're excused.
    Regards,
    Rudi

Posting Permissions

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