admin管理员组文章数量:1423163
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.
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.
Share Improve this question edited Jun 28, 2018 at 11:49 Cœur 38.8k25 gold badges206 silver badges278 bronze badges asked Nov 26, 2013 at 6:10 ArunArun 2571 gold badge5 silver badges22 bronze badges 02 Answers
Reset to default 4You can create an anchor in your HTML with <a id="some-content"></a>
and change the location to some/action#some-content
.
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
本文标签: javascriptRedirect and scroll to specific contentStack Overflow
版权声明:本文标题:javascript - Redirect and scroll to specific content - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745388072a2656467.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论