Skip to main content
Participant
November 4, 2008
Question

Highlighting bookmarks

  • November 4, 2008
  • 2 replies
  • 512 views
Does anyone know how to highlight the bookmark to whcih the link jumps???

Can it be done through a javascripts or through CSS...
This topic has been closed for replies.

2 replies

Participant
November 5, 2008
I want to highlight the text (bookmark) to which the link jumps...

For example, if i have a word "abc" linked to an anchor "pqr" in the same page, then when i click on "abc", the word "pqr" should be highlighted.

This is specially helpful in a page in which the anchor is at the bottom of the page and the viewer of the document will not be to clear as to where the link has been redirected.
RoboWizard
Inspiring
November 5, 2008
Hi there

You will probably have a dickens of a time coaxing the behavior you desire.

It's worth noting that if there is enough data on the page, it will always scroll to position the bookmark at the top of the browser. We often see that a bookmark is far enough toward the bottom of the page that the page cannot scroll to position the bookmark properly. But this is easily overcome by inserting lots of white space at the bottom of the page.

And yes, the white space will cause an extra page or so to be ejected from the printer if the user decides to print the on-line page.

Cheers... Rick
November 4, 2008
Can you give us a little more information? For example, do you mean to highlight the text after the bookmark with some color? You can't really do any formatting of the bookmark itself, because it's just an anchor tag without content.

If you're talking about formatting of text that comes immediately after the bookmark/anchor, it should be sufficient to create a new style in your style sheet and then apply that style to the text.

--Ben