blogsmith Posted July 29, 2010 Share Posted July 29, 2010 I did my homework search "link same page internet explorer" and couldn't find relevant threads so here is my question:I published a post Sultan Azlan Shah - royal hypocrite and tried to hyperlink to another spot in the same webpage using the codes<a href="#speech">speech at 4th convocation of Kolej Islam Darul Ridzuan</a>and<a name="speech"></a><h2>Misery if powerful give in to desires: Perak sultan</h2>It worked with Firefox but don't seem to work with Internet Explorer (IE8?)Is there a workaround so it work in all browsers or a different HTML tag? Link to comment Share on other sites More sharing options...
blogsmith Posted July 29, 2010 Author Share Posted July 29, 2010 sorry forgot enable email notification Link to comment Share on other sites More sharing options...
Ingolme Posted July 29, 2010 Share Posted July 29, 2010 The name attribute is deprecated in favor of ID for all elements except form elements.You should change your HTML to look like this instead:<h2 id="speech">Misery if powerful give in to desires: Perak sultan</h2>A link to "#speech" will scroll to the element that has that ID. It should work properly in all browsers. Link to comment Share on other sites More sharing options...
blogsmith Posted July 30, 2010 Author Share Posted July 30, 2010 The name attribute is deprecated in favor of ID for all elements except form elements.You should change your HTML to look like this instead:<h2 id="speech">Misery if powerful give in to desires: Perak sultan</h2>A link to "#speech" will scroll to the element that has that ID. It should work properly in all browsers.Many grateful thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.