如题 关于微信访问网页点击顶部返回按钮问题
先看下面这个网站 (这个不是来骗ip 请不要删 谢谢) http://wx.less676.com/mob/list.php 随便打开一篇文章 然后 点击浏览器返回后退按钮 当点击后退按钮 的时候 他是自动跳转到另外一个页面 再次点击又返回到打开的文章内容页面 每次打开点击后退 跳转到他指定的页面 然后再返回 那个内容页面请问这个功能怎么做?
先看下面这个网站 (这个不是来骗ip 请不要删 谢谢) http://wx.less676.com/mob/list.php 随便打开一篇文章 然后 点击浏览器返回后退按钮 当点击后退按钮 的时候 他是自动跳转到另外一个页面 再次点击又返回到打开的文章内容页面 每次打开点击后退 跳转到他指定的页面 然后再返回 那个内容页面请问这个功能怎么做?
将返回这样的内容:
<html><head></head><body><script>document.write('<meta http-equiv="refresh" content="1;url=http://wx.less676.com/mob/detail.php?arch_id=220363&ref_id=0&depth=1&_ts=1445143962&domain=wx.less676.com&date=2015-10-18&is_user=no&umk=&amk=560eec952f641e06c5cd4ff28557d209">');document.write('<a href="http://wx.less676.com/mob/detail.php?arch_id=220363&ref_id=0&depth=1&_ts=1445143962&domain=wx.less676.com&date=2015-10-18&is_user=no&umk=&amk=560eec952f641e06c5cd4ff28557d209" id="wei266dd"></a>');document.getElementById("wei266dd").click();</script></body></html>
他将产生这样的等价代码<meta http-equiv="refresh" content="1;url=http://wx.less676.com/mob/detail.php?arch_id=220363&ref_id=0&depth=1&_ts=1445143962&domain=wx.less676.com&date=2015-10-18&is_user=no&umk=&amk=560eec952f641e06c5cd4ff28557d209">
<a href="http://wx.less676.com/mob/detail.php?arch_id=220363&ref_id=0&depth=1&_ts=1445143962&domain=wx.less676.com&date=2015-10-18&is_user=no&umk=&amk=560eec952f641e06c5cd4ff28557d209" id="wei266dd"></a>
<script>document.getElementById("wei266dd").click();</script>这个页面将会自动跳转到内容页
而这个页面就是内容页 后退 的标的