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?\"
var links = document.getElementsByTagName('A');
for (var i = 0; i < links.length; i++)
{
links[i].onclick = function ()
{
return Confirm("Are you sure?");
}
}
This applies the message to all links, however its a little harder to make the links not work without javascript automatically (actually its impossible).