aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/learn/javascript/building_blocks/events/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/learn/javascript/building_blocks/events/index.html')
-rw-r--r--files/zh-tw/learn/javascript/building_blocks/events/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/zh-tw/learn/javascript/building_blocks/events/index.html b/files/zh-tw/learn/javascript/building_blocks/events/index.html
index 102e9cd314..9bb566a61d 100644
--- a/files/zh-tw/learn/javascript/building_blocks/events/index.html
+++ b/files/zh-tw/learn/javascript/building_blocks/events/index.html
@@ -1,9 +1,10 @@
---
title: Event attributes
-slug: Web/Guide/HTML/Event_attributes
+slug: Learn/JavaScript/Building_blocks/Events
translation_of: >-
Learn/JavaScript/Building_blocks/Events#Inline_event_handlers_%E2%80%94_don%27t_use_these
translation_of_original: Web/Guide/HTML/Event_attributes
+original_slug: Web/Guide/HTML/Event_attributes
---
<p><span class="seoSummary">每一個 HTML 元素都可以放置事件屬性,以藉此於事件發生時能執行 JavaScripte 程式。事件屬性的名稱都有一個前綴「on」,例如當使用者點選元素時要執行指定的 JavaScript,可以使用 </span><code>onclick</code><span class="seoSummary"> 屬性並把要執行的 JavaScript 當成屬性值。</span></p>