网页设计返回上一页的代码

来源:百度知道 编辑:UC知道 时间:2024/09/24 04:22:38
相当于浏览器里面后退键的功能能否用代码实现。
- =不好意思我很菜 代码有了 我如何用一个按钮或者一个图片一个文本来实现这个功能。能不能在详细点。我加分。

代码如下,一个按钮,一个文本,图片也类似,有问题hi我

<input type="button" onclick="history.go(-1)" value="back">
<a href="javascript:history.go(-1)" >back</a>

可以啊,js代码
<script>
window.history.back;
</script>

<img src="../images/button.gif" width="19" height="14" style="cursor:pointer;" onclick="top.history.back()" />