how to redirect to new page with javascript , after submit html form? -
I am using html, javascript & Mod_python I want to submit the html form. To do this, I used
document.formName.submit ();
After submitting, I want to redirect to the new page. I tried location = "newpage.html"
but it is not working.
Unless you submit the form with AJAX, submitting a user to a The new page will take you so that you can not redirect to a javascript.
You can redirect to the server side or change the form of the form.
Comments
Post a Comment