Anchor to a subsection of the same page does not work

  •  10-28-2009, 1:14 PM

    Anchor to a subsection of the same page does not work

    I have a web page (TestPage.aspx) that contains a cute editor control
     
    After this page opens and the editor is loaded, I tried to enter some text in the editor. I created an anchor (named Anchor1) inside the text and a link that points to the anchor. Everything looks good in the editor.
     
    Section X
    Text on some stuff 
     
    In preview mode when I pressed "Ctrl + click" on the link, I expected that the cursor would jump to where the anchor points. However this didn't happen. Instead a new tab is opened with url http://localhost:4438/MyTestApp/TestPage.aspx#Anchor1
     
    The html looks correct to me:
    <div><a href="#Anchor1">Go to section X</a></div>
    <div>&nbsp;</div>
    <div><a name='Anchor1' id='Anchor1'></a>Section X <br />
    </div>
    <div>Text on some stuff <br />
    </div>
     
    Any idea what's wrong and how do I  make the link to jump to the anchor location?
View Complete Thread