Tag: The DOM

Recent Post

Insert content to DOM at script tag location

Learn how to get and insert content to the DOM at the location of a script tag.

Writing HTML in JavaScript made easy with template literals

With template literals, it is easy to write blocks of HTML in JavaScript.

Lazy image and iframe loading using pure HTML

Just set the HTML 'loading' attribute to 'lazy' for images and iframes!

How to open a new browser window from JavaScript

Use the open() method on the window object to open a new window in the browser.

What is the DOM in JavaScript?

The DOM is an object through which JavaScript can manipulate live web pages.

Traversing the DOM

Learn the most important methods to traverse the DOM with ease.