Im trying to implement a back button onto a form I am designing which when pressed results in a confirmation popup allowing the user to select ok or cancel. The code I have for this button so far is as follows.
<button type="back" value="back" onclick="goBack()">Back</button>
The issue I am having is that most elements of the form are set as required, and therefore when the back button is clicked, the form asks for all fields to be completed first, please could someone show me how to get the button to go back without requesting the form to be completed first. Thanks