Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using href=#tag in Product Description


cube

Recommended Posts

Posted

If I have a normal HTML page

 

<html>
Go to the <a href=#bottom>bottom</a><br />
<br />
blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />
blah <br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />
blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />blah<br />
<br />
<a name="bottom"> Here you are</a>

</html>

 

Clicking on the link at the top will take me to the bottom of the page, and hovering over the link at the top shows (in Firefox) that the destination is http://localhost/link.html#bottom

 

However, if I put a similar link in to a product description, to allow customers to jump to a particular section of the text, the link comes out as http://mystorename.co.nz/#link

 

Without the product_info.php?pID=1234 included in the URL, the server doesn't know what to do, and returns me to the home page.

 

I could put in the full URL of the link, but that kind of defeats the purpose of the named link feature!

 

Does anyone know why the full link is not being displayed, and is there anything I can do about it?

 

Any help much appreciated

 

Quentin

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...