> For the complete documentation index, see [llms.txt](https://docs.cooltix.com/cooltix-support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cooltix.com/cooltix-support/developers/widget/button-widget.md).

# Button widget

Widget opens with a button.

Add this code to the head of the website:

```html
<script src="https://static.cooltix.com/widget.js" defer></script>
```

Add this code to the website html body:

```html
<button data-cooltix-event-products='eventId' >See tickets</button>
```
