We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f07e55f commit 61381b5Copy full SHA for 61381b5
readme.md
@@ -983,3 +983,15 @@ var clone = oldNode.cloneNode(true);
983
//then replace
984
oldnode.parentNode.replaceChild(clone, oldNode);
985
```
986
+
987
+## event handling
988
989
+* no ```onclick``` in HTML (seriously :)
990
+* usually via framework but worth knowing the basics
991
+* ```EventTarget.addEventListener(eventType, listener, useCapture)``` adds an event handler
992
+* event type - String representing event type to capture
993
+* listener - object implementing EventListener interface, or simply a function
994
+* useCapture - all events will events dispathed to this listener first before other listeners beneath this in the DOM tree
995
+* ```addEventListener``` is not available in IE8 and before
996
+* useCapture - optional (with default=false) in recent browser
997
+* just always pass useCapture in for brodest compatibility
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments