javascript浏览器历史列表 [英] javascript browser history listing
本文介绍了javascript浏览器历史列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我熟悉 window.history.back()
和 window.history.forward()
javascript对象。但是有没有一种方法可以创建一个查看过最后X数页的数组。
I am familiar with the window.history.back()
and the window.history.forward()
javascript objects. But is there a method of creating an array with the last "X" number pages viewed.
推荐答案
不,这将是一个巨大的安全问题。你可以得到 history.length
来计算它们。
No, this would be a huge security problem. You can get history.length
to count them if you wish.
这篇关于javascript浏览器历史列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文