返回的代码怎样写??

zzy9903 2003-11-20 02:44:52
在我的网页中,有多页连接到某一页上,在这个引用页上的《返回》连接应该怎样写,才能实现浏览器中的后退功能??
...全文
45 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhfkiller 2003-11-20
  • 打赏
  • 举报
回复
go Method

--------------------------------------------------------------------------------

Loads a URL from the History list.

Syntax

history.go(vLocation)
Parameters

vLocation Required. Variant that specifies an integer or a string. The integer indicates the relative position of the URL in the History list, and the string indicates all or part of a URL in the browser history.

Return Value

No return value.

Remarks

An error does not occur if the user tries to go beyond the beginning or end of the history. Instead, the user remains at the current page.

zzy9903 2003-11-20
  • 打赏
  • 举报
回复
好了,谢谢以上各位
zhfkiller 2003-11-20
  • 打赏
  • 举报
回复
<a href=javascript:history.go(-1)>返回</a>
lions911 2003-11-20
  • 打赏
  • 举报
回复
<a href=javascript:history.go(-1)>返回</a>
luluso 2003-11-20
  • 打赏
  • 举报
回复
<a href=javascript:history.back()>返回</a>

61,125

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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