You can prevent the default behavior on form submissions with this. I used it to show a custom success message without the window jump.
<script>
$(document).ready(function() {
$(".your-form").on("submit", function(event) {
event.preventDefault(); // Prevent the default form submission
// Add your custom success message logic here
$(".success-message").show(); // Example: Show a custom success message
});
});
</script>