我们可以得到浏览器历史记录通过使用Javascript? [英] Can we get browser history by using Javascript?

查看:199
本文介绍了我们可以得到浏览器历史记录通过使用Javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以得到浏览器历史记录我的网站使用Javascript?

Can we get browser history for my site with Javascript ?

我可以看到一些旧帖子和线程谈论的......但这些方法并没有为我工作。

I can see some of old posts and threads talking about that... but those approaches didn't work for me.

是否有可能或没有又如何?

Is it possible or not and how?

推荐答案

您可以使用<一个href=\"http://www.exforsys.com/tutorials/javascript/javascript-history-object-properties-and-methods.html\">History对象的JavaScript 来做到这一点。

You can make use of History object of javascript to do that

历史酒店的返回值作为历史的对象,它是具有URL的从该窗口中访问过的历史细节项的数组。另外,还要注意历史对象是一个JavaScript对象,而不是HTML DOM对象。

The history property has the return value as history object, which is an array of history items having details of the URL's visited from within that window. Also, note that the History object is a JavaScript object and not an HTML DOM object.

窗口对象的历史属性的语法:

syntax of history property of Window Object:

window.history 

这篇关于我们可以得到浏览器历史记录通过使用Javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆