This can be done with jQuery, if you don't mind the dependence on a framework. I believe jQuery
uses XmlHttpRequest
to perform this action. You'd use the $.ajax
function with the type
parameter set to DELETE
.
Please note that not all browsers support HTTP DELETE requests.