Update document, window

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-20 11:46:23 +03:00
parent 5c344ae3e3
commit 52880f08ee
14 changed files with 16 additions and 16 deletions

View File

@ -5,8 +5,8 @@ tags: browser,css,intermediate
Injects the given css code into the current document
- Use `document.createElement()` to create a new `style` element and set its type to `text/css`.
- Use `Element.innerText` to set the value to the given css string, `document.head` and `Element.appendChild()` to append the new element to the document head.
- Use `Document.createElement()` to create a new `style` element and set its type to `text/css`.
- Use `Element.innerText` to set the value to the given css string, `Document.head` and `Element.appendChild()` to append the new element to the document head.
- Return the newly created `style` element.
```js