Opening a gallery link in new tab

When I do the following:

console.log($w("#myGallery").currentItem);

…I can see in the output, that the current gallery item has a property “target” which is set to “_self”.

But when I try to do this:

$w("#myGallery").currentItem.target = "_blank";

… the code editor tells me the following:

This seems a bit contradictory to me. On the other hand there is no mention of the “target” property in the context of galleries in the documentation.

Does anyone have an idea? It would be much appreciated!

TLDR: I just want to have a new tab opening when clicking on an image in the gallery.