Why I do not achieve results
function go () {
window.location.href = "addselect.jsp";
}
Next
Doing so will achieve page jump, but will not submit the form,
Next
so will submit the form but will not jump,
I'm still a novice experts hope Ariadne,
------ solutions ------------------------- -------------------------------
window.location.href equivalent to redirect it
form parameter is gone
document.getElementById ('form'). submit ();
This should be
form inside do not forget to write action
------ Solutions ----------------------------- ---------------------------
default when the form is submitted will change the current address of the ah (do not use taget of). form submission will go to form, the action specified in the URL, you are one of the form is to be submitted, one has to revise the current address .... dow.location.href = "addselect.jsp"; you want to do ah?
submit form data to addselect.jsp do? In that case directly on the form action = "addselect.jsp", so ah
------ solutions ------- -------------------------------------------------
changed the way you go
function go () {
window.location.href = "addselect.jsp";
document.form1.submit ();
}
/ / Link into
没有评论:
发表评论