DEV Community

Cover image for Dom Manipulation – JavaScript Series – Part 23

Dom Manipulation – JavaScript Series – Part 23

nerdjfpb profile image Muhammad Ali (Nerdjfpb) Originally published at ・1 min read

We’ve ended the javascript basics, what next ? We are going to learn about the javascript dom manipulation.

Let’s go to console in write document.

Alt Text

We can see the whole html we wrote right ?

Now we can manipulate this with our javascript code. Sound fun ?

Let’s try to write document.write('Hiiiiiiiii') in console and see the magic!

Alt Text

So where the document is coming from ?

document is a global object which is available on the browser. But it has a parent, can you guess ?

write window in the console and see what happens –

Alt Text

Interested to make your self into a magician who can change the dom ?

You can see the graphical version here

Source Codes - { Check commits }

GitHub logo nerdjfpb / javaScript-Series

A tutorial for JavaScript Beginners


A tutorial for Absolute Beginners of JavaScript.

You can find the total pdf in - Here

You can check the commits to find the part by part codes.


Day 1
  • Day 1 - What is JavaScript?
Day 2
  • Day 2 - JavaScript Types?
Day 3
  • Day 3 - Javascript Types Cont.
Day 4
  • Day 4 - Javascript Types Cont.
Day 5
  • Day 5 - Javascript Comparisons
Day 6
  • Day 6 - Javascript Variables
Day 7
  • Day 7 - More About Variables
Day 8
  • Day 8 - Conditional Statement
Day 9
  • Day 9 - More Conditional Statement
Day 10
Day 11
Day 12
Day 13
Day 14
Day 15
Day 16
Day 17

Originally it published on nerdjfpbblog. You can connect with me in twitter or linkedin!


Editor guide