历史记录对象的属性不起作用 [英] properties of history object are not working

查看:65
本文介绍了历史记录对象的属性不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用此

Hi,

I am using this

alert(window.history.current)
alert(window.history.previous)
alert(window.history.next)


但它始终在警报框中返回未定义.有什么问题吗?

谢谢.


but it always returns undefined on alert box. What''s the problem?

Thanks.

推荐答案

已经
As already discussed with you[^], above methods are IE specific and Firefox does not support them.

You would need to maintain a stack of URL''s visited and use them based on your bac-forward. You cannot use browsers as Firefox does not support it.


这篇关于历史记录对象的属性不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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