How not to show #anchor in the URL?

How can I prevent #anchor from going to the URL? I am using pure JavaScript throughout my project.

I would like to see the clear URLs as: ""
I don’t want it like this: ""

<a href="#anchor">

<div id="#anchor">

223 thoughts on “How not to show #anchor in the URL?”

  1. Pingback: keto pure diet
  2. Howdy just wanted to give you a quick heads up. The words in your content seem to be running off the screen in Internet explorer.

    I’m not sure if this is a formatting issue or something to do with browser compatibility
    but I thought I’d post to let you know. The layout look great though!
    Hope you get the problem resolved soon. Many thanks

  3. What’s Taking place i am new to this, I stumbled upon this I have found It absolutely helpful and it has aided me
    out loads. I hope to give a contribution & assist different customers
    like its helped me. Good job.

  4. Fantastic goods from you, man. I have remember your stuff previous to
    and you are just extremely wonderful. I really like what you have acquired right here,
    really like what you’re stating and the way during which you
    say it. You make it entertaining and you still take
    care of to stay it smart. I cant wait to learn far more from you.
    That is really a wonderful web site.

  5. Hi, I think your website might be having browser compatibility issues.
    When I look at your blog in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other
    then that, superb blog!

  6. Magnificent beat ! I wish to apprentice whilst you amend your web site, how could i subscribe for a blog web site? The account helped me a appropriate deal. I were a little bit familiar of this your broadcast provided brilliant transparent idea|


Leave a Comment