Modify an Existing Element

Let's see how to use JavaScript to modify a web page once it's been loaded by the browser.

The DOM traversal properties can also be used to update elements in the page.

Example page

Let’s view the text on a page using the HTML code below.

Get hands-on with 1200+ tech skills courses.