Task 1 Find the count of h2 tags using Dom by click Event via ID <!DOCTYPE html> <html> <head> <script> function demo() { let btn = document.getElementById('btnCount'); let headings =... READ MORE >>
getElementById() – select an element by id. getElementsByName() – select elements by name. getElementsByTagName() – select elements by a tag name. getElementsByClassName() – select elements by one or more class names. ... READ MORE >>
DOM is Document Object Model that is used to represent the data of a document on the web and mainly it is an object-oriented representation of the web page that can be modified easily with a scripting language like JavaScript. DOM is an... READ MORE >>
Recent Comments