最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Redirect and scroll to specific content - Stack Overflow

programmeradmin4浏览0评论

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 0
Add a ment  | 

2 Answers 2

Reset to default 4

You 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
发布评论

评论列表(0)

  1. 暂无评论