Spaces:
Running
Running
Update index.html
Browse files- index.html +6 -2
index.html
CHANGED
@@ -18,7 +18,6 @@
|
|
18 |
|
19 |
while (i < linkz.length) {
|
20 |
console.log(linkz[i]);
|
21 |
-
i++;
|
22 |
// create a new div element
|
23 |
const newDiv = document.createElement("div");
|
24 |
|
@@ -30,7 +29,12 @@
|
|
30 |
|
31 |
// add the newly created element and its content into the DOM
|
32 |
const currentDiv = document.getElementById("div1");
|
33 |
-
document.body.insertBefore(newDiv, currentDiv);
|
|
|
|
|
|
|
|
|
|
|
34 |
};
|
35 |
document.getElementById("in_html").innerHTML=links
|
36 |
</script>
|
|
|
18 |
|
19 |
while (i < linkz.length) {
|
20 |
console.log(linkz[i]);
|
|
|
21 |
// create a new div element
|
22 |
const newDiv = document.createElement("div");
|
23 |
|
|
|
29 |
|
30 |
// add the newly created element and its content into the DOM
|
31 |
const currentDiv = document.getElementById("div1");
|
32 |
+
//document.body.insertBefore(newDiv, currentDiv);
|
33 |
+
document.getElementById("in_html").innerHTML=newDiv
|
34 |
+
|
35 |
+
i++;
|
36 |
+
|
37 |
+
|
38 |
};
|
39 |
document.getElementById("in_html").innerHTML=links
|
40 |
</script>
|