Question about Embedded component...

Hi all,

I’m having a browser embedded inside my Embedded component. When I try to open a URL in that component it works fine. (pls see the attached image)

But my problem is that, sometimes the URL I’m visiting has Links to be opened in another tab/window.
Is there a way of preventing this…??

Thanks in advance.
Asela.
11588.jpg

I don’t think you can prevent that in any easy way. An embedded page is really a different page and you can’t modify its behavior.

One solution is to have a proxy (possibly inside the Vaadin app or servlet) that fetches the web page and filters out the problematic links. A new page can be opened both from HTML and from JavaScript, so this could be tricky.