timmyriddle Posted June 17, 2010 Posted June 17, 2010 Hello, I'm currently improving the appearance of my product_info.php page and I need some help with appending a URL. The page has several tabs for product description, specification, related links etc. and neach tab is accessed by adding #description (for example) to the current page url. The problem I'm having at the moment is obviously that as soon as a link is clicked, the url becomes product_info.php#description rather than product_info.php?products_id=25#description for example. I hope I've explained this well enough, can anyone give me a pointer? Tim. :thumbsup:
timmyriddle Posted June 17, 2010 Author Posted June 17, 2010 correction! what I want is catalog/product_info.php?products_id=25#description but what I get is catalog/#description sorry for the mistake! All help greatly appreciated. Tim :thumbsup:
timmyriddle Posted June 17, 2010 Author Posted June 17, 2010 Sorted! I used location.href so in my javascript it now looks like this <a href="'+location.href+'#description"> Hope this helps someone somewhere! Tim.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.