I'd like to reload a web page after supplying new parameters to it via POST in the same way as would be possible with an HTML form
but from within JavaScript (inside an HTML page, but outside the context of a form
).
Is this possible as HTTP POST instead of GET request (kind of XMLHttpRequest
plus replace the currently shown document)? How could I replace the document, if XMLHttpRequest
must be employed (instead of window.location.href
)? The second question has been partially answered here.