I want to do XMLHttpRequest and then open a PDF in the Browser by sending the filename by POST method.
xmlhttp.open("POST","pdf.php",true); //CHANGE
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("file="+input);
Is that possible or XMLHttpRequest is just for HTML?