Dynamic Link opens in new tab

I created a menu with buttons on my dynamic page linking to other dynamic pages.
If i click them they open in a new tab.
I want them to open in the same tab like a regular menu, is it possible?

is there a solution?

Hey Cemil K,

$w.onReady(function () {
    $w("#myElement").target = "_self";
});

Simply paste this code to your website editor.
Copy the id of the button you want to link and paste it instead “myElement” word.

Arman.