Dynamic HTML List

Dynamic HTML

List Items and Anchors

List Items

Imagine this Javascript code where we call addRowToList() each time new data is read in:

<script>
  var lineCounter= 0;
 
  function addRowToList() {
   const list = document.getElementById("thelist");
   lineCounter++;
   list.innerHTML += `<li>Item ${lineCounter}</li>`;
  }
</script>

 

 Anchors


 

Comments

Popular posts from this blog

Upgrading to .NET8 from desktop versions 4.8.X

GHL Chat Bots for Webpage

GHL > Set website so shorter URL address