Skip to content

Commit 16864d0

Browse files
Add files via upload
1 parent a77a99d commit 16864d0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

js_feed_list.htm

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<body>
5+
6+
<h2>HTML List from js array</h2>
7+
8+
<ul id="usersList">
9+
</ul>
10+
11+
<script type="text/javascript">
12+
13+
var iLoop = 0;
14+
var usersList = document.getElementById("usersList");
15+
16+
for (iLoop; iLoop < users.length; iLoop++) {
17+
usersList.innerHTML += '<li>'+users[iLoop]+'</li>';
18+
}
19+
</script>
20+
</body>
21+
<!--
22+
https://www.codecademy.com/
23+
https://developer.mozilla.org/en-US/
24+
https://www.sourcecodester.com/
25+
-->
26+
</html>

0 commit comments

Comments
 (0)