... on the local computer request to print, not in a server
//post data
var data = new FormData();
data.append("printer", "[printer name]");
Post request with url http://localhost:8888 and the form data
Get request with http://localhost:8888?printer=[printer name]
Printer property only can send once or in get variables or in post variables.