document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
innerHTML
outerHTML
textContent
value
insertBefore()
insertPrevious()
appendBefore()
addBefore()
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
element.getValue()
element.innerHTML
element.value
element.innerText
removeElement()
removeNode()
removeChild()
deleteNode()
hasChildNodes()
childNodes
children
hasChildren()
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
element.background = "red";
element.style.backgroundColor = "red";
element.style.background = "red";
element.css.backgroundColor = "red";
element.appendChild()
element.insertChild()
element.addChild()
element.attachChild()
document.createElement()
document.appendElement()
document.insertElement()
document.newElement()
insertAfter()
appendChild()
prependChild()
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
element.content
replaceNode()
replaceElement()
replaceChild()
replaceWith()
innerText
All of the above
getElement()
getId()
queryElement()
What will the following JavaScript code do?
var element = document.getElementById("myDiv");element.remove();
Remove the element with the ID "myDiv" from the DOM
Remove all child elements inside the element with the ID "myDiv"
Hide the element with the ID "myDiv"
Move the element with the ID "myDiv" to a different location
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
classList.add()
classList.remove()
classList.toggle()
classList.replace()