Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE trouble with linking to anchors on another page

Status
Not open for further replies.

generlam

Programmer
Jun 13, 2001
75
0
0
US
I'm having a problem with linking to different secions on another page. I'm developing in HTML Kit and when I set up the code to link to a section in another page it works fine in Gecko mode but not in internet explorer. IE tells me that it can't find the page.

<a
href="PuritanBackground.shtml">Early Puritan Beginnings</a></li><li><a
href="PuritanBackground.shtml#section2">Puritans in England</a></li><li><a
href="PuritanBackground.shtml#section3">Massachusetts Bay Colony</a></li>
Then in the PuritanBackground page, first I tried this:

<h2 id="Section2">Puritans in England</h2>
blah blah
<h2 id="Section3">Massachusetts Bay Colony</h2>
blah blah

then :

<p><a id="section2"></a>
<h2>Puritans in England</h2>
blah blah
</p><p>
<a id="section3"></a>
<h2>Massachusetts Bay Colony</h2>
blah blah
</p>

Both ways worked in Gecko mode and not in IE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top