When using XMLHTTPRequest in javascript, I want to send it to an external website, not the one where the .js file is located. To send it to test.php on the current server, I would use
request.open("POST", "test.php", true);
but for the second argument, how to send it to another site. "example.com/test.php" searches for the file on the current server, and " http://example.com/test.php " justseems for a complete failure. "
John
source
share