Opening a new browser tab

Hi,

How can I open a new browser tab with Vaadin 10 ?

Thx,
Andreas

Hi.

This depends on what you will use to open the new tab/window.
For instance if you use Anchor then you can just set the target as anchor.setTarget("_blank").

From the server side you could for instance open it with javascript like:
UI.getCurrent().getPage().executeJavascript("window.open(location.href, \"_blank\", \"\");");

  • Mikael