简体   繁体   中英

HTML form page redirect not working

I have an online form on my business' internal site. When the form is submitted, the form goes through an error check scripted in Javascript. If everything checks out, then it gets sent to an email for evaluation and the page is supposed to redirect to a confirmation page. However, when I click on Send, the email gets sent but the page does not change. Here is the code I am having issues with:

emailForm(myForm, myForm.emailTo.value, myForm.emailSubject.value, myForm.emailLevel.value, 'server'),
location.href = formsubmitted.html;

If I remove the emailForm function, it will redirect the page. This same code works on other forms I have so I'm not sure why it's stopping me. I've used up all of my resources and am unsure how to fix this. Please help. Thanks

emailForm调用结束时,它可能是逗号而不是分号吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM