> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/browser/event/target.md).

# event.target

[browser](/web/browser.md) ⟩ [event](/web/browser/event.md) ⟩ .target

{% hint style="success" %}
Most <mark style="color:yellow;">**event objects**</mark> have a [`target`](https://developer.mozilla.org/en-US/docs/Web/API/Event/target) property that refers to the [**node**](/web/browser/dom/type/node.md) <mark style="color:yellow;">**where they originated**</mark>. You can use this property to ensure that you’re not accidentally handling something that propagated up from a node you do not want to handle.
{% endhint %}

{% tabs %}
{% tab title="💈範例" %}

* [buttons A, B, C](/web/browser/event/target/buttons-a-b-c.md)
  {% endtab %}

{% tab title="📗 參考" %}

* [ ] Eloquent JS ⟩ [Ch. 15: Event Handling](https://eloquentjavascript.net/15_event.html) ⟩ [Propagation](https://eloquentjavascript.net/15_event.html#h_NEhx0cDpml)&#x20;
  {% endtab %}

{% tab title="📘 手冊" %}

* [Event](/web/browser/event.md) ⟩ [.target](https://developer.mozilla.org/en-US/docs/Web/API/Event/target) ([EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget))
  {% endtab %}
  {% endtabs %}
