What is the essence of writing a code in javascript to change the elements of HTML body tags... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the essence of writing a code in javascript to change the elements of HTML body tags...

The usefulness of var x = document.getElementsByClassName(" "); X.appendChildNode(" ");

6th Dec 2019, 3:44 PM
Richard Mann
Richard Mann - avatar
1 Answer
+ 2
thus, you can hide unnecessary elements and create, show new ones without reloading the page itself. it is important. once loaded, the web page no longer accesses the server with background data. all interaction takes place on the client side. this way you can create interactivity or games
6th Dec 2019, 5:00 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar