0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>The event was triggered, the message was output, and the form was sent. It’s just that we do not need to submit the form data. Our task is to display the data from the form on the same page.</p>
1
<p>The event was triggered, the message was output, and the form was sent. It’s just that we do not need to submit the form data. Our task is to display the data from the form on the same page.</p>
2
<p>We have already discussed default actions<a>in this assignment</a>. Back then we were working with links, but this time we are dealing with forms. The form submission is the default form action that we need to cancel. We will use evt.preventDefault() to do this.</p>
2
<p>We have already discussed default actions<a>in this assignment</a>. Back then we were working with links, but this time we are dealing with forms. The form submission is the default form action that we need to cancel. We will use evt.preventDefault() to do this.</p>
3
<p>Cancel the default action, try to submit the form again, and check that the data is no longer being sent.</p>
3
<p>Cancel the default action, try to submit the form again, and check that the data is no longer being sent.</p>