File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
2-ui/2-events/01-introduction-browser-events/01-hide-other Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 77
88< body >
99
10- < input type ="button " id ="hider " value ="Click to hide the text " />
10+ < input type ="button " id ="hider " value ="Tekan disini untuk menyembunyikan pesan " />
1111
12- < div id ="text "> Text </ div >
12+ < div id ="text "> Teks </ div >
1313
1414 < script >
15- // Here it doesn't matter how we hide the text ,
16- // could also use style.display:
15+ // Disini tidak terlalu penting bagaimana cara menyembunyikan teks ,
16+ // bisa juga digunakan style.display
1717 document . getElementById ( 'hider' ) . onclick = function ( ) {
1818 document . getElementById ( 'text' ) . hidden = true ;
1919 }
Original file line number Diff line number Diff line change 77
88< body >
99
10- < input type ="button " id ="hider " value ="Click to hide the text " />
10+ < input type ="button " id ="hider " value ="Tekan disini untuk menyembunyikan pesan " />
1111
12- < div id ="text "> Text </ div >
12+ < div id ="text "> Teks </ div >
1313
1414 < script >
15- /* your code */
15+ /* kode kamu */
1616 </ script >
1717
1818</ body >
You can’t perform that action at this time.
0 commit comments