历史记录对象的属性不起作用 [英] properties of history object are not working
本文介绍了历史记录对象的属性不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用此
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.
推荐答案
已经 ^ ]),以上方法特定于IE,而Firefox不支持它们.
您需要维护一堆访问的URL,并根据bac-forward使用它们.您无法使用浏览器,因为Firefox不支持它.
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屋!
查看全文