> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://ajuda.greatsoftwares.com.br/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to access the JAVASCRIPT field of a BUTTON

The **"Button Javascript"** function is a field used exclusively to add codes that will only be triggered when this button is clicked.

An example of a function generally installed in the button's Javascript field are the conversion tags from Google Ads or Facebook Ads.

To access this function, follow the step by step below:

1. Access the page editor in GreatPages;

![](https://storage.crisp.chat/users/helpdesk/website/-/a/6/a/b/a6ab90d8350d6000/editdesign_qfn3ef.png)

2. Click the **button element** and click on **"Edit"**;

![](https://storage.crisp.chat/users/helpdesk/website/-/a/6/a/b/a6ab90d8350d6000/editbutton_egyqmx.png)

3. Inside the \**"Código"* tab you will find the **"Button Javascript"** field.

![](https://storage.crisp.chat/users/helpdesk/website/-/a/6/a/b/a6ab90d8350d6000/image_1tqu5yd.png)

||| If your page freezes while loading after you insert a code in this field, contact our support team, as it is very likely that the code inserted is wrong, or that it should not be inserted in this field exactly!

We hope this helped! If you have any questions, reach out to our support team. We're always happy to help! :-)  