How about submitting the form? document.forms[0].submit(); and make sure that the method of the form is post.