Dave Cross: Still Munging Data With Perl: Online event - Mar 17 Learn more

function confirm_remove( object_type, name, url ) {
var msg = 'Do you want to remove ' + object_type + ' (' + name + ') ?'
if ( confirm( msg ) ) {
self.location = url;
}
}