JSP and JavaScript combine to handle Confirm confirmation to achieve conveying parameters to another page
The purpose is to remove a series of data from the database, and the end of each line is deleted, but the user needs to be deleted when the user is deleted.
First of all, I used JavaScript to judge.
Function MyConfirm (ID)
{
IF ("Is it sure to delete the user?")))
{
Deleteuser (ID)
}
}
script>
This will be jumped out in calling JavaScript: MyConfirm (), and the Deleteuser (ID) is executed if the user clicks OK.