---
title: "iphone safari history.go 不工作"
author: "carge"
date: "2014-01-28T20:50:23Z"
tags: []
categories: ["Web前端"]
slug: "iphone-safari-history-go"
draft: false
lastmod: "2014-01-28T20:50:23Z"
id: 2010556
url: "https://carge.iteye.com/blog/2010556"
---

如下代码在iphone safari不工作，不能回到前一个页面

 

```
<a href="#" onClick="history.go(-1)">Back</a>
```

 

 

 如下代码在iphone safari工作，能回到前一个页面

 

```
<input type="button" onClick="history.go(-1)"/>
```