You can create an anchor in your HTML with <a id="some-content"></a>
and change the location to some/action#some-content
.
Redirect and scroll to specific content
-
05-08-2022 - |
Pregunta
hi guys can any one have idea whenever i click from footer link a new page will be open and the will scroll to a specific content below is the screen shot. Condition is the website is in yii framework and nothing others.
Solución
Otros consejos
using <a> you can create that functionality
<a id="travel">Travel Privileges</a>
and try to add #travel
in the location bar
Ex:
http://somedomain/privileges#travel
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow