Chapter 13 - Javascript DOM and BOM
Please open the console to see the output and visit the script.js file to understand what's going on.
Javascript Dom Manipulation-
Selecting Elements-
Open the console from developer tools to see a result.
Selecting Elements -
Direct Selection -
document.getElementById() -
Hi, My Name is Mr Kumar.
The above paragraph is selected by document.getElementbyId()
document.getElementByName() -
Please Select a language you know-
document.getElementByTagName() -
If you want to develop any website, then contact Mr Kumar
document.querySelector() -
This is a Text inside an ID.
This is a Text inside a Class.
document.querySelectorAll() -
This is a Text inside an ID.
This is a Tex2 inside a Class.
This is a Text3 inside a Class.