Frappe.call form data help

I am having an issue. I want to post form data to backend python, then when customers click submit. Transfer them to a different domain(website.com/success) How do you do this?
My thought is
JS.
frappe.call
method:‘api/method.to.python.path’
type: ‘POST’
window.location.href=website.com

Do I do the callback: function()
This is a general question since I am going to do it with several things

Your question is not clear, can you elaborate please?

Form data is is posted when you submit doc.

use hooks, to trigger actions on doc events.
https://frappe.io/docs/user/en/guides/basics/hooks
https://frappe.io/docs/user/en/guides/integration/webhooks

I think you should look into Frappe’s routing methods

I simply want to do a web form POST to the server side python. Along with sending the user to a different URL. I have been able to do both a post and redirect. But never at the same time.