File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ //Events
2
+
3
+ let a = document . getElementsByClassName ( "container" ) [ 0 ]
4
+ a . onclick = ( ) => {
5
+ let b = document . getElementsByClassName ( "container" ) [ 0 ]
6
+ b . innerHTML = "Hello World!"
7
+ }
Original file line number Diff line number Diff line change 35
35
</div>
36
36
<script src="45_script.js"></script> -->
37
37
38
- Hello world
39
- < script src ="46_script.js "> </ script >
38
+ <!-- Hello world
39
+ <script src="46_script.js"></script> -->
40
+
41
+ < div class ="container " onmouseenter ="console.log('container ke andar mouse gaya') "
42
+ onclick ="console.log('container me click hua') ">
43
+ < button onclick ="alert('hello'); let a = 6; console.log(a) "> Click me</ button >
44
+ </ div >
45
+ < script src ="47_script.js "> </ script >
40
46
41
47
</ body >
42
48
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ html, body {
3
3
width : 100% ;
4
4
}
5
5
6
- .yellow {
6
+ /* .yellow {
7
7
background-color: yellow;
8
8
color: white;
9
9
}
@@ -15,4 +15,9 @@ html, body {
15
15
16
16
.text-dark {
17
17
color: black;
18
+ } */
19
+
20
+ /* for 47th script */
21
+ .container {
22
+ background : lightblue;
18
23
}
You can’t perform that action at this time.
0 commit comments