top of page

Anchor links / tags in SharePoint 2010

HTML anchor links across two webpages Now for the second type of HTML anchor. The script below creates a link that points to another place on a different webpage. Again, you need to create two anchors: Create anchor on Page A pointing to "here" on page B <a href="PageB.html#Here">Go to Here on Page B</a> Place a named anchor on PageB.html <a name="here">Here</a>

HTML Anchor Links in SharePoint Unfortunately in some areas of SharePoint 2010 like Wiki pages, users experience a side-effect of all the gadgetry involved in the system: normal HTML anchors that they may enter into the content areas are "broken" and do not respond. I did some checking and found the following behavior: -IE 8 - goes to the Anchor Tag on the new page, then jumps to the top. From my understanding this is due to the ribbon bar or something on the page that overrides focus -IE 7 - works -IE 6 - works g -FireFox 12 - page loads and never generates a focus anywhere...not even the jump you get from IE 8 Solution 1 (Basic HTML editing comfort required): Add the target anchor link as normal, in the following example Chapter1 is the text you replace with your own anchor name & text: Add the following as the hyperlink to the target: Solution 2: Edit your publishing page and select some text. Now click “Insert/Link/From Address”. In the pop up window just type “/” for the “Address” field. Remove “/” from the URL field and add “#Chapter1” or equivalent value to “Bookmark”. Now you will be able to create an anchor to “#Chapter1”. Just select some other text in your page. Now click “Insert/Link/From Address”. In the pop up window just type “#Chapter1” for “Address”. Save and your inpage link will work. You're at the bottom!

1 view0 comments

Recent Posts

See All

Comments


bottom of page