var myVideo = document.getElementById("nectar-start"); function playPause() { if (myVideo.paused) myVideo.play(); else myVideo.pause(); }