> For the complete documentation index, see [llms.txt](https://shinyobjectlabs.gitbook.io/framework-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shinyobjectlabs.gitbook.io/framework-js/attributes/x-on.md).

# x-on

### Overview

Attach an event listener to the element.

{% content-ref url="/pages/Rqe8KJGrnF9lsaKeEjnJ" %}
[x-on:click](https://shinyobjectlabs.gitbook.io/framework-js/attributes/x-on/x-on-click.md)
{% endcontent-ref %}

{% content-ref url="/pages/p4Yls8QjHznbBSiGWroG" %}
[x-on:input](https://shinyobjectlabs.gitbook.io/framework-js/attributes/x-on/x-on-input.md)
{% endcontent-ref %}

{% content-ref url="/pages/Bx4GWdtSOZ1b5VhtQcia" %}
[x-on:change](https://shinyobjectlabs.gitbook.io/framework-js/attributes/x-on/x-on-change.md)
{% endcontent-ref %}

{% content-ref url="/pages/rUgupHcUvjmKbfnb4o6d" %}
[x-on:submit](https://shinyobjectlabs.gitbook.io/framework-js/attributes/x-on/x-on-submit.md)
{% endcontent-ref %}
