The window object is supported by all browsers. It represents the browser's window.
window.clearInterval(timerVariable);
maintains a separate storage area for each given origin that's available for the duration of the page session (as long as the browser is open, including page reloads and restores)
Cookies let you store user information in web pages.
When a web server has sent a web page to a browser, the connection is shut down, and the server forgets everything about the user.
Cookies were invented to solve the problem "how to remember information about the user":
document.cookie = "username=Pasha Carousel";
document.cookie = "username=Pasha Carousel; expires=Sun, 23 Dec 2018 12:00:00 UTC";
document.cookie = "username=Pasha Carousel; path=/";
You can also add an expiry date (in UTC time). By default, the cookie is deleted when the browser is closed
With a path parameter, you can tell the browser what path the cookie belongs to. By default, the cookie belongs to the current page
element.innerHTML = new html content
Change the inner HTML of an element
element.style.property = new style
Change the style of an HTML element
element.classList
is a read-only property that returns a live DOMTokenList collection of the class attributes of the element.
element.addEventListener()
Registers an event handler to a specific event type on the element
element.removeEventListener()
Removes the named attribute from the current node
element.setAttribute(attribute, value)
Change the attribute value of an HTML element
element.appendChild(child)
Adds a node to the end of the list of children of a specified parent node
element.insertAdjacentHTML(position, text)
The insertAdjacentHTML() method parses the specified text as HTML or XML and inserts the resulting nodes into the DOM tree at a specified position.
document.createElement()
creates the HTML element specified by tagName
document.createDocumentFragment()
DocumentFragments are DOM Nodes. They are never part of the main DOM tree.