Answers for "javascript log html element as dom object"

0

javascript log html element as dom object

var el = document.getElementById("myId"); 
console.log(el); // logs the html of element <div>…</div>
console.dir(el); // logs the element’s properties and values
Posted by: Guest on April-15-2021

Code answers related to "javascript log html element as dom object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language