javascript browser history listing

你。 提交于 2019-12-01 17:14:42

问题


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.


回答1:


No, this would be a huge security problem. You can get history.length to count them if you wish.




回答2:


Check out:

How do you get the previous url in Javascript?

In short you can get the number of previous sites visited (history.length) but not the url's.



来源:https://stackoverflow.com/questions/17032415/javascript-browser-history-listing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!