File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ <h1 class="display-5 fw-bold">Custom jumbotron</h1>
9393 >
9494 Example button
9595 </ button >
96+ < button
97+ class ="btn btn-primary btn-lg "
98+ type ="button "
99+ id ="create-div-button "
100+ onclick ="window.createDiv() "
101+ >
102+ Create div button
103+ </ button >
96104 </ div >
97105 </ div >
98106
@@ -166,6 +174,12 @@ <h2>Add borders</h2>
166174 window . clickAbsolute = function ( ) {
167175 console . log ( 3 ) ;
168176 } ;
177+ window . createDiv = function ( ) {
178+ var div = document . createElement ( "div" ) ;
179+ div . innerHTML = "Later added div" ;
180+ div . setAttribute ( "id" , "later_added" ) ;
181+ document . body . appendChild ( div ) ;
182+ } ;
169183 </ script >
170184 < script type ="text/javascript " src ="./dist/intro.js "> </ script >
171185 </ body >
You can’t perform that action at this time.
0 commit comments