Skip to content

Commit eb7c0db

Browse files
authored
Merge pull request #3 from ericyang89/master
fix typo fforget
2 parents 5bd6424 + b792cf9 commit eb7c0db

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/2-events/01-introduction-browser-events

1 file changed

+1
-1
lines changed

2-ui/2-events/01-introduction-browser-events/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ For instance, to assign a `click` handler for an `input`, we can use `onclick`,
4848

4949
On mouse click, the code inside `onclick` runs.
5050

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.
5252

5353
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.
5454

0 commit comments

Comments
 (0)