PDA

View Full Version : Code problem with # in href


BrowsingBear
06-16-2012, 08:29 AM
Having trouble with linking to a specific part of a page. ie not the top of the page.
What is wrong with this code
<li><a href="points.html#home">Reports</a></li>
<li><a href="points.html#about">Reports</a></li>
<li><a href="points.html#gallery">Reports</a></li>

I can create a hyperlink to points.html without any problem but the links with the following code added #home or#about or #gallery after points.html page do not work.

What is strange is that right clicking the <li><a href="points.html#home">Reports</a></li> link and "open in new tab" does work.

Anyone who knows what is going on and can explain to me would be appreciated til the end of time