Why can't you use GET? I think that would be easier...
I'm not great at JavaScript, but I think the only way to pass a value via POST is to make a form in your page with a hidden field. You can then set the field to the value returned by the JS prompt function, and submit the form using JavaScript.
(I'm not going to post example code... not enough time
)