function play() { console.log("Play..."); var xhttp = new XMLHttpRequest(); xhttp.open("GET", "play", true); xhttp.send(); }