> For the complete documentation index, see [llms.txt](https://docs.omnichat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omnichat.ai/integration/an-niu-shi-jian.md).

# 按鈕事件

```
let omnichatButton = document.getElementById('easychat-floating-button');
let event = new Event('click');
omnichatButton.dispatchEvent(event);
```
