I have this HTML:
<form action="mypage.php" method="post"
onsubmit="return confirm('Are you sure you want to submit this form? Submitting this form has serious consequences and you should definitely think long and hard before doing it.');">
I want to keep my code at or below 80 characters wide. How can I split this up into multiple lines while retaining the exact same functionality?
I’ld create a Javascript section that defines a function that you call from the form:
the form:
This gets your Javascript out of you HTML form and can be clearly broken where you like.