Skip to content

Latest commit

 

History

History
73 lines (64 loc) · 3.43 KB

n2aa.md

File metadata and controls

73 lines (64 loc) · 3.43 KB

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors Visitors

Don't forget to hit the ⭐ if you like this repo.

JavaScript: DOM

Set A

  1. a) Document Object Model
  2. b) document
  3. a) getElementById()
  4. a) document.createElement()
  5. a) appendChild()
  6. a) textContent
  7. a) classList.add()
  8. a) classList.remove()
  9. a) addEventListener()
  10. a) Prevents the default behavior of an event
  11. b) parentNode
  12. a) remove()
  13. a) value
  14. a) Access the style property of the element
  15. a) classList.contains()
  16. a) getElementsByClassName()
  17. a) It sets or gets the HTML content of an element
  18. a) Use the setAttribute() method
  19. a) insertBefore()
  20. b) It selects and returns all elements that match a specified CSS selector
  21. a) document.createTextNode()
  22. a) replaceChild()
  23. b) firstElementChild
  24. a) Stops the propagation of an event
  25. a) hasAttribute()
  26. b) lastElementChild
  27. b) It sets or gets the text content of an element
  28. a) innerHTML = ""
  29. a) cloneNode()
  30. b) nextElementSibling
  31. a) It returns the width of an element including padding, border, and scrollbar (if any)
  32. a) hasChildNodes()
  33. a) scrollIntoView()
  34. b) previousElementSibling
  35. a) It returns the height of an element including padding, border, and scrollbar (if any)
  36. a) element.hidden
  37. a) getBoundingClientRect()
  38. a) closest()
  39. a) It returns the width of an element including padding but excluding border and scrollbar (if any)
  40. a) getComputedStyle()
  41. a) matches()
  42. a) element.hasAttribute()
  43. a) It returns the height of an element including padding but excluding border and scrollbar (if any)
  44. a) offsetWidth
  45. a) contains()
  46. a) offsetHeight
  47. a) Scrolls the element into view, making it visible in the viewport
  48. a) element.style.hasOwnProperty()
  49. a) It returns the height of an element including its content, padding, and scrollbar (if any)
  50. a) getComputedStyle().getPropertyValue()

Contribution 🛠️

Please create an Issue for any improvements, suggestions or errors in the content.

You can also contact me using Linkedin for any other queries or feedback.

Visitors