I am trying to get this button to disappear when it is clicked, however, it does nothing when clicked
HTML
<button id="startButton" onclick="startButton()">
<img src="Img\MainMenu\button(play).png">
</button>
<script type="text/javascript" src="Client\js\placeholder.js"></script>
JavaScript
startButton.onclick = function startButton() { // when start button is clicked
startButton.style.display = "none";
};