You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/2-events/01-introduction-browser-events/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ For instance, to assign a `click` handler for an `input`, we can use `onclick`,
48
48
49
49
On mouse click, the code inside `onclick` runs.
50
50
51
-
Please note that inside `onclick` we use single quotes, because the attribute itself is in double quotes. If we fforget that the code is inside the attribute and use double quotes inside, like this: `onclick="alert("Click!")"`, then it won't work right.
51
+
Please note that inside `onclick` we use single quotes, because the attribute itself is in double quotes. If we forget that the code is inside the attribute and use double quotes inside, like this: `onclick="alert("Click!")"`, then it won't work right.
52
52
53
53
An HTML-attribute is not a convenient place to write a lot of code, so we'd better create a JavaScript function and call it there.
0 commit comments