I am starting a new mini series on JavaScript. I’m starting it from zero. Anyone can start learning from here. My goal is helping others while learning! I know about JavaScript and I’m working on a MERN tech stack. But I think it is not a bad idea to revise the JavaScript from scratch and helping others in this time. If you have any questions, shoot on the comment session or you can directly ask me in my social media. Social media links are in the last part of today’s lesson! Let’s learn JavaScript together.

Dom Manipulation — JavaScript Series — Part 23

A full series to learn the JavaScript from zero

Muhammad Ali
2 min readFeb 17, 2020

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.

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!

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 –

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

Originally it published on nerdjfpb blog. Check the git for codes.

you can connect with me in twitter, linkedin or instagram

--

--

Muhammad Ali
Muhammad Ali

Written by Muhammad Ali

An otaku who loves computer. Love to write and help others through my work. Have a look on my Instagram https://www.instagram.com/nerd_jfpb/

No responses yet