# Back Button

> Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…

Source: https://tadabase.com/docs/snippets/back-button  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

> **Warning:** Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add this functionality is through the plugin installation wizard. Learn more about plugins [here](https://tadabase.com/docs).

![Screenshot for “Back Button”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-20_22-54-09.png)

The following is a custom button and JavaScript solution to go back to a page according to the window history.

**Step 1**

**Add a HTML Component. Within the source code <>, add the following code to create the button.**

```
<p><button class="btn btn-primary back-btn">Back</button></p>
```

![Screenshot for “Back Button”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-20_23-03-39.png)

**Step 2**

**In the JavaScript tab of your page add the following code.**

```
$(’.back-btn’).on(‘click’,function(){
window.history.back();
});
```

![Screenshot for “Back Button”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-20_23-07-48.png)

**Original Community Posts:**

[Has anyone created a back button that works? - Community Discussions / How Do I - Tadabase Community](https://community.tadabase.io/t/has-anyone-created-a-back-button-that-works/701/5)
