Month: May 2021

Task using Selecting Elements in Dom

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   >>

Selecting Elements in DOM

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 in JavaScript

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

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved