Question

How can I change the scroll spy Bootstrap to make it work without hash?

this is standard operation:

<a href="#page"> Page </ a> 

But i would like to use it like this (without hash):

<a href="page"> Page </ a>

it is possible?

Was it helpful?

Solution

Based on bootstrap docs:

Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the DOM like <div id="home"></div>.

OTHER TIPS

Instead of trying to change bootstrap, why not just do this:

<a href="#page"></a>
<a href="page">Page</a>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top