javascript - Pop up menu opens new tab instead of continuing in the same tab

问题描述:

I have some code where I click on pop up menu button, then menu appears and when I do next .click() on menu element, it tries to open new tab with the AJAX link from the menu option but I want to use it as user would, then it would do the trick in the same tab, without opening new. Is there any way to make browser think that user clicked that?