How to influence the working of the Cancel Button - for example redirecting to another page

How to influence the working of the Cancel Button - for example redirecting to another page

I supposed that the Cancel button could bring the user to a different page or something like that when clicked. I do not see how this ought to work. Can anyone help me with this? Point me to something?

Kind regards