-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path09-dom.html
More file actions
36 lines (30 loc) · 880 Bytes
/
09-dom.html
File metadata and controls
36 lines (30 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>Dom</title>
</head>
<body>
<button>hello</button>
<button class="js-button">second button</button>
<script>
/*
document.body.innerHTML = 'hello';
document.title = 'GOOD JOB';
*//*
document.title = 'change tittle of page';
console.log(document.title);
console.log(document.body);
console.log(typeof document.body);
console.log(document.body.innerHTML );
document,body.innerHTML = 'Change body';
document,body.innerHTML = '<button>Good job</button>';
*/
console .log( document.querySelector('button').innerHTML);
document.querySelector('button')
.innerHTML = 'Changed';
const button = document.querySelector('.js-button');
console.log()
//.innerHTML = 'Changed';
</script>
</body>
</html>