<!DOCTYPE html>
<html>
<body>
<select>
    <option>Foo</option>
</select>
<script>

addEventListener("load", () => {
    let option = document.querySelector("option");
    option.innerHTML = "Bar";
});

</script>
</body>
</html>
