Is it possible to send post-variables with javascript? I want id to be sent with post, not get.
id
window.location.href=\"hanteraTaBortAnvandare.ph
You can submit form data via JavaScript but not using window.location.href. Changing the URL location is always going to issue a GET.
You'll need to get a reference to your form from the DOM and then issue a submit() call to it.