Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Remove # from end of URL

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37037
    Rugg
    Participant

    Howdy!

    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:

    Link

    The end result is this:

    website.com/#

    (FYI the hashtag never leaves the url)

    #98451
    TheDoc
    Member

    You could always change it to a < span> and just give it some CSS to make the pointer (hand) show up.

    #98454
    karlpcrowley
    Participant

    changing it to a span means that users can’t tab to it

    Link

    If you are already using a JavaScript eventHandler for this anchor add the return false to the end of the function instead
    Or if you are using jQuery use e.preventDefault();

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.