# Create an Anchor Link 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/create-an-anchor-link-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 “Create an Anchor Link Button”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-16_20-43-57.png)

This is a way to create a button that goes to the row you would like your page to scroll to.

**Step 1**

**Add an HTML component, and within the source code <> create a button with the class of anchorButton.**

> **Note:** You can change the class and phrase "Go!" to your liking.

```
<p><button class="anchorButton">Go!</button></p>
```

![Screenshot for “Create an Anchor Link Button”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-16_20-21-07.png)

**Step 2**

**On your live app, find the Row that will be your anchor - the row you want the page to scroll to.**

![Screenshot for “Create an Anchor Link Button”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-16_20-34-20.png)

**Step 3**

**Add this code to the JavaScript tab of your page.**

> **Note:** Replace ‘x_element_page_10_5’ with the ID of your row.

```
$(".anchorButton").click(function() {
    $('html, body').animate({
        scrollTop: $("#x_element_page_10_5").offset().top
    }, 750);
});
```

![Screenshot for “Create an Anchor Link Button”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-16_20-39-51.png)

**Original Community Post:**

[Link button component - Community Discussions / How Do I - Tadabase Community](https://community.tadabase.io/t/link-button-component/908)
