I have an extension with a backend view where I have a button which routes to another url. When the user clicks the button I want to show a pop up which asks him a second time if he/she really wants to continue. I have the following code in my template:
But that does not work. Here are my two questions:
- What do I have to do so that the pop up shows up?
- What should I insert in the
cancel()function so that if the user clicks OK, he gets to the route the button links to, otherwise not.