IE6.0中document.location.href=history.back()为什么不行?

Yexr 2002-09-30 12:14:07
IE6.0中document.location.href=history.back()为什么不行?
IE5中就可以。
...全文
163 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟子E章 2002-09-30
  • 打赏
  • 举报
回复
window.history.back()
window.location.go(-1)

方工 2002-09-30
  • 打赏
  • 举报
回复
history.back()是方法,不是属性,没有返回值。
For security reasons, the history object does not expose the actual URLs in the browser history. It does allow navigation through the browser history by exposing the back, forward, and go methods. A particular document in the browser history can be identified as an index relative to the current page. For example, specifying -1 as a parameter for the go method is the equivalent of clicking the Back button.

希默软件 2002-09-30
  • 打赏
  • 举报
回复
document.location.href=history.back()

这样写也行?你直接写history.back()不就完了

87,993

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧