Update article.md
Spelling things out a bit more for insertAdjacentHTML
This commit is contained in:
parent
f6ead73b4e
commit
c8e062f499
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ So if we need to add a lot of text into HTML dynamically, and we're at page load
|
|||
|
||||
All these methods return `node`.
|
||||
|
||||
- Given a piece of HTML: `elem.insertAdjacentHTML(where, html)`, inserts depending on `where`:
|
||||
- Given some HTML in `html`: `elem.insertAdjacentHTML(where, html)`, inserts it depending on the value of `where`:
|
||||
- `"beforebegin"` -- insert `html` right before `elem`,
|
||||
- `"afterbegin"` -- insert `html` into `elem`, at the beginning,
|
||||
- `"beforeend"` -- insert `html` into `elem`, at the end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue