Use XMLHttpRequest:
var xhr = new XMLHttpRequest(); xhr.open('POST', 'https://ex.ample.com/file.php', true); xhr.onreadystatechange = function() { if (this.readyState == 4) { console.log(this.responseText); } }; xhr.send('var1=val1&var2=val2');Existem muitos tutoriais sobre AJAX e o objeto xhr.