A pattern that\'s started to show up a lot in one of the web apps I\'m working are links that used to just be a regular a-tag link now need a popup box asking \"are you sure?\"
A class-binding version (no need for inline onclick attributes): link this external < script> after all confirmable controls:
// dangerous - warnings on potentially harmful actions
// usage: add class="dangerous" to , or
This is a slightly long-winded due to the binding working on submits/buttons as well. Generally though it makes sense to have ‘dangerous’ options you will want to confirm on buttons rather than links. GET requests as fired by links shouldn't really have any active effect.