Blog

document.addEventListener("DOMContentLoaded", function() { const nextButton = document.querySelector(".e-form__buttons__wrapper__button-next"); if (nextButton) { nextButton.addEventListener("click", function(event) { event.preventDefault(); // Prevent any default actions if needed setTimeout(() => { window.scrollTo({ top: 0, behavior: "smooth" }); }, 100); // Small delay to ensure the transition works }); } else { console.error("Next button not found. Check the class selector."); } });