iframe redirect


I am using an iframe inside a static html page to display a vaadin component, when the user clicks a button on the vaadin component, i would like to redirect them to another url, could someone help with me how to do this?

i have tried the following but it just opens the new url inside the iframe

this.getWindow().m.open(new ExternalResource(“http://localhost:80/MyMainVaadinApp”));

thanks for any help,

what is the variable ‘m’ in your code example? i bet it is still the window api you are coding against? try using the method open(Resource resource, String windowName) instead of the one that you are using . You should be able to name your main parent frame as well and refer to that, but maybe “_top” works as well.