In my current project I’ve been trying to get a nice popup message to show when a user presses a button.
This can be done in several ways, of which most are cumbersome or hard to understand.
The only thing needed is a line of code on the URL target of the submit button.
If you want the button to submit when Ok in the popup is pressed, your code will look like this:
If you want the button to redirect to a different page using a URL when Ok is pressed, you can use this code instead: