let request = new XMLHttpRequest() request.open('POST', URL, true) request.onload = ()=>{ //Do something } request.send(params)//<-Parameters are set here