Matt found a less-than-helpful helper function in a large JavaScript library:

function confirmMessage(msg)
{
    if ( confirm(msg) )
        return true;
    else
        return false;
}

After all, why use the confusing "confirm('something');" when you could use the simplicity of a reference to the custom JavaScript library and use "confirmMessage('something');"?

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!