how to get the parent window?

487 views
Skip to first unread message

wahaha

unread,
Nov 25, 2011, 3:55:11 AM11/25/11
to Google Web Toolkit
in javascript we use "window.parrent" to get the parent window,the in
gwt how to do this ?

Thomas Broyer

unread,
Nov 25, 2011, 4:36:56 AM11/25/11
to google-we...@googlegroups.com
public static native JavaScriptObject getParentWindow() /*-{ return $wnd.parent; }-*/;

(and yes, there's no Window class in GWT to map to an arbitrary browser context; Window is static, using $wnd only)
Reply all
Reply to author
Forward
0 new messages