javascript - Redirect and scroll to specific content - Stack Overflow

hi guys can any one have ideawhenever i click from footer link a new page will be open and the will s

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745388073a4625531.html

相关推荐

  • javascript - Redirect and scroll to specific content - Stack Overflow

    hi guys can any one have ideawhenever i click from footer link a new page will be open and the will s

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信