JavaScript check if start button is clicked
<p>I have a problem with my button. I'd like to keep playing my opening sound if the button has not been clicked; otherwise pause the sound and load the game. How can I achieve this? I've tried this so far to no avail.</p>

<pre><code>function showStartScreen(launch) {
    //SHOW SPLASH SCREEN
    var screen = document.getElementById("splash");
    removeClass(screen, SPLASHSTATES.SPLASH_OFF);
    addClass(screen, SPLASHSTATES.SPLASH_ON);

    if(document.getElementById('startButton').click = false){
    playSound(sndOpening);
    }
    else{
    //CONFIGURE START BUTTON
    var start = document.getElementById("startButton");
    if (launch) {
        start.innerText = "Start Game";
        stopSound(sndOpening);
        start.addEventListener("click", loadGame, false);
    } else {

    start.innerText = "Resume Game";
    start.addEventListener("click", reloadGame, false);
            }
    } // end of outer if-else

    //ANIMATE SPLASH SHOW
    animatePanel(splash);
}
</code></pre>

<p>Any help is appreciated. thanks</p>
