You can do this without JavaScript by changing the markup and adding a CSS class.
Change HTML markup to (** note disabled added next to the drop-down switch): **
<a class="dropdown-toggle disabled" data-toggle="dropdown" data-target="#" href="http://www.google.com"> Dropdown <b class="caret"></b> </a>
If you want the submenu to appear on hover (since clicking now goes to the specified URL), add this CSS class:
.nav li.dropdown:hover .dropdown-menu { display: block; }
This applies to Bootstrap version 2.3.1.
source share