DOM properties
Friday, June 29, 2018
8:02 AM
[link]
document.querySelector(".main-title").innerHTML
"Welcome to Moonwalk Manor"
document.querySelector(".main-title").outerHTML
<h2 class="main-title">"Welcome to Moonwalk Manor"</h2>
id
className
classList
cool trick:
document.querySelector(".main-title").innerHTML = "Glass-Steagall NOW!!!"