Nim : 10.41010.0001
Nama : Randy Floranno Hasdi
MK : Pengembangan Pemograman Web
Kelas : M1
DOM(Document Object Model)
-Document is the webpage NOT the site
-Object is anything you see in the web page
Jika mempunyai cabang disebut node
Jika tidak mempunyai cabang disebut leaf
Tipe Node dan Leaf
Ada 12 tipe, paling sering digunakan ada 4 tipe :
1.Element Node == 1
2.Attribute Node == 2
3.Text Node == 3
4.Comment Node == 8
1,2,3,8 adalah nilai dalam DOM scripting
Manfaat DOM(Scripting)
-get the web title
-find the first paragraph, then change the value
-Change the background color of a table
-find the logo image, then move it 100px to the right
-added some function to the button links
-create new node(any type)
-…