Home > Backend Development > PHP Tutorial > javascript - 手机腾讯网的文章详情页返回列表页是如何实现的?

javascript - 手机腾讯网的文章详情页返回列表页是如何实现的?

WBOY
Release: 2016-06-06 20:28:37
Original
1559 people have browsed it

列表页

<code>http://info.3g.qq.com/g/s?aid=infocenter&i_f=172&sid=&&icfa=home_touch&iarea=132</code>
Copy after login
Copy after login

详情页

<code>http://info.3g.qq.com/g/sicfa=infocenter&aid=wechat_ss&id=wechat_20150909011371&pos=wechat_cs</code>
Copy after login
Copy after login

如题,并且点击右上角的返回按钮,是返回之前的列表页的该文章的位置,而不是页面头部开始,

回复内容:

列表页

<code>http://info.3g.qq.com/g/s?aid=infocenter&i_f=172&sid=&&icfa=home_touch&iarea=132</code>
Copy after login
Copy after login

详情页

<code>http://info.3g.qq.com/g/sicfa=infocenter&aid=wechat_ss&id=wechat_20150909011371&pos=wechat_cs</code>
Copy after login
Copy after login

如题,并且点击右上角的返回按钮,是返回之前的列表页的该文章的位置,而不是页面头部开始,

有谁知道吗.................

其实这是浏览器记住的,不是页面实现的,当然一些特殊的用法可以通过window.scrollTo来完成

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template