I am trying to hide the button when the form loads using a function (HideRemove()), and a onload tag script. However, for some reason it does not work. I have tried using .hidden on another part of my code and it works just fine. Any suggestions would be appreciated:

```
HTML: 

<div class="BuyRemoveButtonDiv">
          <button id="Button1">Add To Cart</button>
          <button id="Remove1" onload="HideRemove()">Remove From Cart</button>
          </div>

JS: 

function HideRemove() {
  let Remove1 = document.getElementById("Remove1");
  Remove1.hidden = true;
}

```

EDIT: Problem solved. Buttons do not have an "onload" event. The solution was to add a window event listener for load.