{"id":139554,"date":"2022-09-21T06:00:32","date_gmt":"2022-09-20T21:00:32","guid":{"rendered":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/?p=139554"},"modified":"2022-09-17T01:31:29","modified_gmt":"2022-09-16T16:31:29","slug":"javascript-dispatch-event","status":"publish","type":"post","link":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/09\/javascript-dispatch-event.html","title":{"rendered":"\u3010JavaScript\u306e\u57fa\u672c\u3011\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u751f"},"content":{"rendered":"<p>\u30a4\u30d9\u30f3\u30c8\u306f\u30d6\u30e9\u30a6\u30b6\u3092\u898b\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u3088\u3063\u3066\u767a\u751f\u3057\u307e\u3059\u304c\u3001JavaScript\u3067\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u7279\u5b9a\u306e\u5bfe\u8c61\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u751f\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2 class=\"style2c\">\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u306e\u4f5c\u6210<\/h2>\n<p>\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u3092\u767a\u751f\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305a\u30a4\u30d9\u30f3\u30c8\u306e\u4f5c\u6210\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n<code>Event<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>new Event(eventtype[, option]);\r\n<\/code><\/pre>\n<\/div>\n<p>\u7b2c\u4e00\u5f15\u6570\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u3067\u30a4\u30d9\u30f3\u30c8\u306e\u7a2e\u985e\u3092\u6587\u5b57\u5217\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u65e2\u5b58\u306e\u30a4\u30d9\u30f3\u30c8\u540d\uff1a<code>'click'<\/code>\u3084<code>'mousedown'<\/code>\u306a\u3069<\/li>\n<li>\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u540d\uff1a<code>'hi'<\/code>\u306a\u3069\u306e\u4efb\u610f\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u540d<\/li>\n<\/ul>\n<p>\u7b2c\u4e8c\u5f15\u6570\u306f\u3001\u7701\u7565\u53ef\u80fd\u3067\u4ee5\u4e0b\u306e\u5024\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><code>bubbles<\/code>\uff1a<code>true<\/code>\u306e\u5834\u5408\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u30d0\u30d6\u30ea\u30f3\u30b0\u53ef\u80fd\u306b\u3059\u308b<\/li>\n<li><code>cancelable<\/code>\uff1a<code>true<\/code>\u306e\u5834\u5408\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u53ef\u80fd\u306b\u3059\u308b<\/li>\n<\/ul>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3069\u3061\u3089\u3082<code>false<\/code>\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u65b0\u3057\u304f\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u3053\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let event = new Event('click');\r\n<\/code><\/pre>\n<\/div>\n<h2 class=\"style2c\">\u30a4\u30d9\u30f3\u30c8\u306e\u5b9f\u884c<\/h2>\n<p>\u30a4\u30d9\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u305f\u5f8c\u3001<code>dispatchEvent<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30a4\u30d9\u30f3\u30c8\u306e\u5b9f\u884c\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u767a\u751f\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>EventTarget.dispatchEvent(event);\r\n<\/code><\/pre>\n<\/div>\n<p>\u5f15\u6570\u306b\u306f\u3001\u4e0a\u8a18\u3067\u4f5c\u6210\u3057\u305f<code>Event<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let event = new Event('click');\r\ntarget.dispatchEvent(event);\r\n<\/code><\/pre>\n<\/div>\n<p>\u307e\u305f\u3001\u767a\u751f\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u304c\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u3082\u306e\u304b\u3001<code>dispatchEvent<\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u3082\u306e\u304b\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<code>Event.isTrusted<\/code>\u3092\u53c2\u7167\u3057\u3001\u305d\u306e\u7d50\u679c\u304c<code>true<\/code>\u306e\u5834\u5408\u306f\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002JavaScript\u3067\u751f\u6210\u3055\u308c\u305f\u30a4\u30d9\u30f3\u30c8\u306f<code>false<\/code>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;h2&gt;Click buttons&lt;\/h2&gt;\r\n&lt;input id=\"btn1\" type=\"button\" value=\"button1\"&gt;\r\n&lt;input id=\"btn2\" type=\"button\" value=\"button2\"&gt;\r\n\r\n&lt;script&gt;\r\n  let btn1 = document.getElementById('btn1');\r\n  let btn2 = document.getElementById('btn2');\r\n\r\n  btn1.onclick = (e) =&gt; {\r\n    console.log('btn1: ' + e.isTrusted);\r\n\r\n    let event = new Event('click');\r\n    btn2.dispatchEvent(event);\r\n  };\r\n\r\n  btn2.onclick = (e) =&gt; {\r\n    console.log('btn2: ' + e.isTrusted);\r\n  };\r\n&lt;\/script&gt;\r\n<\/code><\/pre>\n<\/div>\n<p>2\u3064\u306e<code>&lt;input&gt;<\/code>\u306b\u5bfe\u3057\u3066\u3001\u3069\u3061\u3089\u3082\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u306e\u6307\u5b9a\u304c\u3055\u308c\u3066\u3044\u308b\u306e\u3068\u3001\u30cf\u30f3\u30c9\u30e9\u306e\u4e2d\u3067<code>e.isTrusted<\/code>\u3067\u53c2\u7167\u3067\u304d\u308b\u5024\u3092\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5185<code>btn1<\/code>\u306e\u30cf\u30f3\u30c9\u30e9\u306e\u4e2d\u3067\u306f\u3001<code>btn2<\/code>\u306e\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3082\u767a\u751f\u3055\u305b\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001button1\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001button2\u306e\u30af\u30ea\u30c3\u30af\u3082\u767a\u52d5\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001button1\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-content\/uploads\/2022\/09\/eventdispatch_1.png\" alt=\"eventdispatch_1\" width=\"790\" height=\"330\" class=\"s_shot alignnone wp-image-139557 size-full\" \/><\/p>\n<p>button1\u306e\u30af\u30ea\u30c3\u30af\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u3088\u3063\u3066\u884c\u308f\u308c\u305f\u3082\u306e\u3067\u3042\u308b\u305f\u3081\u3001<code>true<\/code>\u304c\u8fd4\u308a\u307e\u3059\u3002<br \/>\n\u4e00\u65b9\u3001button1\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3053\u3068\u306b\u3088\u3063\u3066button2\u306e\u30af\u30ea\u30c3\u30af\u3082\u767a\u52d5\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081btn2\u306f<code>false<\/code>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306bbutton2\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-content\/uploads\/2022\/09\/eventdispatch_2.png\" alt=\"eventdispatch_2\" width=\"790\" height=\"310\" class=\"s_shot alignnone wp-image-139558 size-full\" \/><\/p>\n<p>button2\u306b\u306f\u30e6\u30fc\u30b6\u30fc\u64cd\u4f5c\u306b\u3088\u3063\u3066\u884c\u308f\u308c\u305f\u30a4\u30d9\u30f3\u30c8\u3057\u304b\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001<code>true<\/code>\u306e\u307f\u304c\u8fd4\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u4ee5\u5916\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u5b9f\u884c\u3067\u304d\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<h2 class=\"style2c\">\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8<\/h2>\n<p>\u65e2\u5b58\u30a4\u30d9\u30f3\u30c8\u3092\u65b0\u3057\u304f\u4f5c\u6210\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u72ec\u81ea\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001<code>hi<\/code>\u3068\u8a00\u3046\u540d\u524d\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3057\u305f\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;h1&gt;This is H1&lt;\/h1&gt;\r\n&lt;h2 id=\"text\"&gt;&lt;\/h2&gt;\r\n\r\n&lt;script&gt;\r\n  \/\/ \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u30ad\u30e3\u30c3\u30c1\u3059\u308b\r\n  document.addEventListener('hi', (e) =&gt; {\r\n    console.log('Hi from ' + e.target.tagName);\r\n  });\r\n\r\n  \/\/ \u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8'hi'\u3092\u4f5c\u6210\u3059\u308b\u969b\u3001\u30d0\u30d6\u30ea\u30f3\u30b0\u3092\u8a2d\u5b9a\u3059\u308b\r\n  let event = new Event('hi', {bubbles: true});\r\n  let text = document.getElementById('text');\r\n  text.dispatchEvent(event);\r\n&lt;\/script&gt;\r\n<\/code><\/pre>\n<\/div>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-content\/uploads\/2022\/09\/eventdispatch_3.png\" alt=\"eventdispatch_3\" width=\"790\" height=\"250\" class=\"s_shot alignnone wp-image-139559 size-full\" \/><\/p>\n<p><code>\"Hi from H2\"<\/code>\u304c\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001<code>&lt;h2&gt;<\/code>\u3067\u767a\u751f\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u304c<code>document<\/code>\u306b\u4f1d\u642c\u3057\u3001\u305d\u3053\u3067\u8a2d\u5b9a\u3057\u305f\u30cf\u30f3\u30c9\u30e9\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u65e2\u5b58\u30a4\u30d9\u30f3\u30c8\u3068\u307b\u3068\u3093\u3069\u540c\u3058\u3088\u3046\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u88dc\u8db3\u3059\u308b\u3079\u304d\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u306e\u5834\u5408<code>addEventListener<\/code>\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u65e2\u5b58\u306e\u30a4\u30d9\u30f3\u30c8\u3067\u3042\u308c\u3070\u3001<code>on&lt;event&gt;<\/code>\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u5834\u5408\u3001<code>onhi<\/code>\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u3066\u3082\u52d5\u304b\u306a\u3044\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u306b\u306f\u3001<code>new CustomEvent()<\/code>\u3092\u4f7f\u3046\u3053\u3068\u3067\u4efb\u610f\u306e\u60c5\u5831\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>new CustomEvent(eventtype[, option]);\r\n<\/code><\/pre>\n<\/div>\n<p>\u7b2c\u4e8c\u5f15\u6570\u306b\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3067<code>detail<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u305f\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u81ea\u8eab\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3092\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u3067\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;h1 id=\"text\"&gt;Hi, this is Hanako!&lt;\/h1&gt;\r\n\r\n&lt;script&gt;\r\n  \/\/ detail\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b\r\n  let event = new CustomEvent('info', {\r\n    detail: {\r\n      name: 'Hanako Yamada',\r\n      city: 'Tokyo', \r\n      age: 25,\r\n      job: 'Developer'    \r\n    }\r\n  });\r\n\r\n  let text = document.getElementById('text');\r\n  text.addEventListener('info', (e) =&gt; {\r\n    console.log('Here is my info');\r\n    \/\/ e.detail\u3067\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u60c5\u5831\u306e\u4e00\u89a7\u3092\u53c2\u7167\u3059\u308b\r\n    console.log(e.detail);\r\n  });\r\n\r\n  text.dispatchEvent(event);\r\n&lt;\/script&gt;\r\n<\/code><\/pre>\n<\/div>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-content\/uploads\/2022\/09\/eventdispatch_4.png\" alt=\"eventdispatch_4\" width=\"790\" height=\"280\" class=\"s_shot alignnone wp-image-139560 size-full\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001<code>detail<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u4efb\u610f\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u7ba1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<code>new CustomEvent()<\/code>\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u3092\u3088\u308a\u660e\u78ba\u306b\u3059\u308b\u305f\u3081\u306b\u3082\u6709\u52b9\u3067\u3059\u3002<\/p>\n<h2 class=\"style2c\">\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u751f\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>\/\/ \u30dd\u30a4\u30f3\u30c8\r\n* Event\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001\u65e2\u5b58\u306e\u30a4\u30d9\u30f3\u30c8\u307e\u305f\u306f\u72ec\u81ea\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u3092\u65b0\u3057\u304f\u4f5c\u6210\u3059\u308b\r\n* dispatchEvent\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u65b0\u3057\u304f\u4f5c\u6210\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3059\u308b\r\n* \u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u306e\u5834\u5408\u3001CustomEvent\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u3088\u308a\u8a73\u7d30\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3067\u304d\u308b\r\n<\/code><\/pre>\n<\/div>\n<h2 class=\"style5\">\u5408\u308f\u305b\u3066\u8aad\u307f\u305f\u3044\u30a4\u30d9\u30f3\u30c8\u6982\u8981\u30b7\u30ea\u30fc\u30ba<\/h2>\n<p>\u7b2c1\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2021\/05\/javascript-eventhandler.html\"><strong>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9<\/strong><\/a><br \/>\n\u7b2c2\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/09\/javascript-eventlistener.html\"><strong>\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u30fc<\/strong><\/a><br \/>\n\u7b2c3\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/09\/javascript-eventobject.html\"><strong>\u30a4\u30d9\u30f3\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/a><br \/>\n\u7b2c4\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/09\/javascript-bubbling-capturing.html\"><strong>\u30d0\u30d6\u30ea\u30f3\u30b0\u3068\u30ad\u30e3\u30d7\u30c1\u30e3\u30ea\u30f3\u30b0<\/strong><\/a><br \/>\n\u7b2c5\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/09\/javascript-event-target-currenttarget.html\"><strong>Event.target\u3068Event.currentTarget<\/strong><\/a><br \/>\n\u7b2c6\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/09\/javascript-event-delegation.html\"><strong>\u30a4\u30d9\u30f3\u30c8\u79fb\u8b72<\/strong><\/a><br \/>\n\u7b2c7\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/09\/javascript-event-preventdefault.html\"><strong>\u30c7\u30d5\u30a9\u30eb\u30c8\u52d5\u4f5c\u306e\u30ad\u30e3\u30f3\u30bb\u30eb<\/strong><\/a><br \/>\n\u7b2c8\u56de\uff1a<a href=\"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/2022\/09\/javascript-dispatch-event.html\"><strong>\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u751f<\/strong><\/a>\uff08\u5f53\u8a18\u4e8b\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"\u30a4\u30d9\u30f3\u30c8\u306f\u30d6\u30e9\u30a6\u30b6\u3092\u898b\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u3088\u3063\u3066\u767a\u751f\u3057\u307e\u3059\u304c\u3001JavaScript\u3067\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u7279\u5b9a\u306e\u5bfe\u8c61\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u4eca\u56de\u306f\u3001\u65b0\u3057\u3044\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u751f\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u65b0 [&hellip;]","protected":false},"author":1,"featured_media":139636,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1142],"tags":[964],"class_list":["post-139554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript-basic","tag-javascript"],"_links":{"self":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts\/139554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/comments?post=139554"}],"version-history":[{"count":0,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/posts\/139554\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/media\/139636"}],"wp:attachment":[{"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/media?parent=139554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/categories?post=139554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anthem00.xsrv.jp\/2023_new_tcd\/wp-json\/wp\/v2\/tags?post=139554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}