JavaScript – HTML DOM methods

Below is the  table of commonly used JavaScript HTML DOM methods: Method Description getElementById Returns the element that has the ID attribute with the specified value getElementsByTagName Returns a list of elements with the specified tag name getElementsByClassName Returns a list of elements with the specified class name querySelector Returns the first element that matches …

JavaScript – HTML DOM methods Read More »