File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Task 3
2
+ var formSeach = document . getElementById ( 'form' ) ;
3
+ console . log ( formSeach ) ;
4
+
5
+ // Task 4
6
+
7
+ console . log ( document . getElementById ( 'form#main' ) . children . length ) ;
8
+
9
+ // Task 5
10
+
11
+ var element = document . getElementById ( 'main' ) ;
12
+ var parent = element . parentElement ;
13
+ console . log ( parent . tagName === 'body' ) ;
14
+
15
+ // Task 6
16
+
17
+ document . body . style . backgroundColor = 'green' ;
18
+
19
+ // Task 7
20
+
21
+ document . body . style . backgroundColor = 'black' ;
22
+ document . body . style . color = 'green' ;
23
+
24
+ // Task 8
25
+
26
+ var body = document . body ;
27
+ document . body . style . backgroundColor = 'black' ;
28
+ document . body . style . color = 'white' ;
29
+
30
+ console . log ( document . body . style . backgroundColor + ', ' + document . body . style . color ) ;
31
+
32
+ console . log ( getComputedStyle ( body ) . backgroundColor + ', ' + getComputedStyle ( body ) . color ) ;
33
+
34
+
You can’t perform that action at this time.
0 commit comments