Advertisement

getElementById in JavaScript : Element access methods

getElementById in JavaScript : Element access methods There are few methods in JavaScript through which we can target the DOM.

1. document.getElementById("id") = Target the DOM through Id.
2. document.getElementsByClassName("Class_name") = Target the DOM through classname.
3. document.getElementsByTagName("Tag_name") = Target the DOM through tagname.

Note :- we can also style and change the value of element through these JavaScript methods.

If you like my video then please like,subscribe and share my channel for upcoming video.

getelementbyid javascript,getelementbyid javascript in hindi,getelementsbyclassname javascript,getelementsbytagname javascript,innerhtml javascript,getelementbyid,JavaScript,JavaScript in hindi,getelementsbyclassname,getelementsbytagname,JavaScript DOM,

Post a Comment

0 Comments