The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Remove # from end of URL
Curious if anyone can suggest a method for removing the hashtag at the end of a URL. In my case the hashtag is visible after I click a link (activating a jQuery .slideToggle) with the following code:
The end result is this:
(FYI the hashtag never leaves the url)
You could always change it to a < span> and just give it some CSS to make the pointer (hand) show up.
changing it to a span means that users can’t tab to it
Or if you are using jQuery use e.preventDefault();