🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

doubleClickToGo.js is a tiny yet useful jQuery plugin that makes a link open on double click instead of single click.

Click

Documentation

Double-Click-To-Go

doubleClickToGo.js is a tiny yet useful jQuery plugin that makes a link open on double click instead of single click. Useful for multi-level navigation where the user needs to toggle submenus with single click. Built as jQuery Plugin.

Dependencies

Installation

<!-- 1. Create your navigation menu --> <nav class="menu">     <ul>         <li><a href="#">First level</a></li>         <li><a href="#" class="has-child">First level</a>             <ul>                 <li><a href="#">Second level</a></li>                 <li><a href="#">Second level</a></li>             </ul>         </li>     </ul> </nav>  <!-- 2. Include jQuery --> <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>  <!-- 3. Include plugin --> <script src="dist/jquery.dcd.doubleclicktogo.js" type="text/javascript"></script>  <!-- 4. Bind plugin to each a tag where you want to require double click to follow the link --> <script type="text/javascript">     $(function () {         $('.has-child').doubleClickToGo();     }); </script>

Changelog

1.0.0 Initial Release


You May Also Like