Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Select the options to query a DOM. (Select all that apply)
- ---getElementById
- ---querySelector
- ****************************************************+
- document.getElementbyID(thebutton).onclick = null; removes the onclick event from thebutton element.
- ----Verdadero
- *****************************************************
- querySelectorAll() returns a NodeList that captures a list of all the elements returned by querySelectorAll.
- ---Verdadero
- ******************************************************+
- What is the output of the following code snippet? (Select all that apply)
- var x = document.querySelectorAll("span");
- x.innerText = "changed";
- x.className = "item";
- ----Change the text for the all span elements to changed.
- ---Change the class for the all span elements to item.
- --*********************************************************************
- You can add multiple listeners to an object using the addEventListener.
- ---Verdadero
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement