This problem is becoming quite frustrating as it appears to be straightforward but still doesn't work.
Inside my document, I have
<div id ="splashscreen" style="display:block">
<h3>title</h3>
<p>text</p>
<input type="button" value="Start" onClick="splash();" />
</div>`
And in the script section of my document, I have
function splash() {
var divSplash = document.getElementById("splashscreen");
divSplash.style.display = "none";
}
Shouldn't the splash()
function be triggered when the Start button is clicked, leading to the display style of my splashscreen
div to change to none?