Forum Moderators: open
I'm using the the following format: index.html#hash1, index.html#hash2, etc...
My only complaint is that it changes the address bar to a different (longer) url.
I don't want people to be confused by this, and I don't want people to copy this longer address to link to me by either.
What I would like to do is possibly use javascript on these links, to return false, but for the browser to still move the page down to the right id.
It would graciously default for users who don't have javascript, by working how it's working now.
Is this possible?
Google: "Make Internal Links Scroll Smoothly with JavaScript"
I don't want people to be confused by this, and I don't want people to copy this longer address to link to me by either.
If your hash's are reasonably short (which I suspect they are if they are internal links?) then I'd question whether this would confuse your users? Afterall this is standard browser behaviour. I would have thought that the ability to bookmark parts of a page is a feature since you are already providing a link to it? If I want to direct someone to a particular part of a page I would often view the source and look for a suitable ID to construct the URL - very handy.