Hello I have this line of code.
onClick=\"confirm(\'Are you sure you want to update the database to the latest version?\')\">Updat
Confirm function actually returns a boolean. It's true if the user clicks ok, and false if cancel is clicked. So you need to save the return value of confirm function in a variable, and then check that variable to perform desired operations.