How to select tag name using DOM? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How to select tag name using DOM?

For example I have to print <body></body> Like body body Using javascript For more detail check my post on my profile

17th Oct 2019, 3:12 PM
Saad Mughal
Saad Mughal - avatar
2 Answers
+ 1
You can use document.getElementsbyTagName() method with tag name as the parameter.. 😊
31st Dec 2019, 3:30 AM
Ahmad Butt
Ahmad Butt - avatar
- 2
Gʜ₀ᴢ₇ Sᴇᴄ plz check the post on my homepage
18th Oct 2019, 9:56 AM
Saad Mughal
Saad Mughal - avatar