-1

Default link: localhost/sample-page/

Target link: localhost/sample-page/#bottom

<a href="#bottom">
  <div class="arrow"></div>
</a>
<div class="container" id="bottom">

This link is in the same page, the scenario is that when a link is clicked it will go to localhost/sample-page/ but it showing localhost/sample-page/#bottom

How do I remove #bottom when the a is clicked?

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
jayllopy
  • 19
  • 4

1 Answers1

0

Add your original link in the href tag. Check this URL https://jsfiddle.net/shoesheill/w7j16mqp/1/

<a href="https://jsfiddle.net/shoesheill/w7j16mqp/1/">
 <div class="arrow">Button</div>
 </a>
 <div class="container" id="bottom">
Sushil
  • 1,111
  • 1
  • 10
  • 23