Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Parent menu trigger button Reply To: Parent menu trigger button

#277860
chris_2080
Participant

Hi,

You can try this:

$("ul#primary-menu > li.menu-item-has-children").on("click", function(e)     {
        return false;
    }).dblclick(function(e) {
        var win = window.open($(this).children().attr('href'), '_blank');
        win.focus();
        return false;
    });

https://codepen.io/chris3000/pen/wYjxjO