Advertisement
jmacc

DOM Interactions

Jan 8th, 2013
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Select the options to query a DOM. (Select all that apply)
  2.  
  3. ---getElementById
  4. ---querySelector
  5.  
  6. ****************************************************+
  7. document.getElementbyID(thebutton).onclick = null; removes the onclick event from thebutton element.
  8. ----Verdadero
  9.  
  10. *****************************************************
  11. querySelectorAll() returns a NodeList that captures a list of all the elements returned by querySelectorAll.
  12. ---Verdadero
  13.  
  14. ******************************************************+
  15. What is the output of the following code snippet? (Select all that apply)
  16. var x = document.querySelectorAll("span");
  17. x.innerText = "changed";
  18. x.className = "item";
  19.  
  20. ----Change the text for the all span elements to changed.
  21.  
  22. ---Change the class for the all span elements to item.
  23. --*********************************************************************
  24. You can add multiple listeners to an object using the addEventListener.
  25. ---Verdadero
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement