Accessing Html Elements

Lesson 13
Author : Afrixi
Last Updated : October, 2017

Javascript - Program the Web
This course covers the basics of programming in Javascript. Work your way through the videos/articles and I'll teach you everything you need to know to make your website more responsive!
Table of Content


<h1 id="myHeader" afrixi="Afrixi Attr">Afrixi</h1> <script src="script.js"></script>
var header = document.getElementById("myHeader");"color:blue; background-color:red;" document.write( header.getAttribute("afrixi") ); header.innerHTML = "Elephant Academy";