Hello all,
Saw some posts about this before but it isn’t quite what I need.
Looking to redirect a form back to the homepage. However, I know nothing about pulling data from the backend and have resorted to a third-party service to get and send me the form data. However, the service itself redirects the form to a “Thank You” page afterwards in the same tab. I would like to keep using the third-party service, but also redirect the user back to the homepage, whether it be a new tab or same window. Is there a copy/paste html or java script for this? Totally lost. Here’s what the form looks like:
<html>
<body>
<form id="example" method="post" action="https://www.formbackend.com/my-own-url">
<button type="submit" onclick="myfunction()">Please Work</button>
<script>
function myFunction() {
window.location.href="https://thesiteiwanttogoto.com";
}
</script>
</form>
</body>
</html>
Thank you!