Se usi JQuery puoi fare così:


codice:
$(document).ready(function () 
{
   $('body').dblclick(function (e) 
   {
      if ($(e.target).is('body')) 
      {
         //attivi la tua funzione
      }
   });
});