If I understood correctly, then the following will send the formData
to test.php
silently in the background.
var xhr = new XMLHttpRequest();
xhr.open('POST', 'test.php');
xhr.send(formData);
However, I would like to have the same behavior as if one submits a form with a target="_blank"
attribute. So to open test.php with the post data in a new tab.