I have this button on a novalidate html form and I'm trying to get it to redirect to another webpage, while keeping the original functionality of creating an account.
<button class="yWSHVqDY3QXtLSenwRoA" data-test="create-account-create-button" type="submit"><span>Create account</span></button>
The end goal is for when a user creates an account, the button automatically redirects them to a payment page. I'm super new to coding, so I'm not sure if this is possible, but any help is appreciated!
clickandkeydownevent listeners to your rescue.