Make a link open on double click

Posted in css

Great resource on Stack Overflow on how resolve the issue of mouse hover navigation on mobile devices. You lose the ability to hover over a link for a dropdown submenu. You need to click on top level navigation to display the submenu. Otherwise the click takes you directly to a link without displaying submenu.

http://stackoverflow.com/questions/4562012/make-a-link-open-on-double-click

jQuery(function($) {

$(‘#golink’).click(function() {
     return false;
}).dblclick(function() {
     window.location = this.href;
     return false;
}).keydown(function(event) {
     switch (event.which) {
          case 13: // Enter
          case 32: // Space
               window.location = this.href;
               return false;
          }
     });

});