browser alerts will always come with a javascript header. But for the cancel part you can always use return false, which will prevent the user from submitting the form.
Hello,
You can create these by changing the attributes of the variable.
Right click on the variable name and configure the dictionary , then set the attributes for the variable.
PLEASE HIT LIKE OR MARK HELPFUL IF FOUND USEFUL.