Sunday, December 30, 2012

Re: Open url in new mobile safari instance?:

This works on iOS Fullscreen web applications. I think it may also work on a UIWebView

public void open(String url) {
Anchor a = new Anchor();
NativeEvent e = Document.get().createHtmlEvent("click", true, true);

On Sunday, December 30, 2012 1:57:50 PM UTC-5, markww wrote:

I have a Button, when clicked, I'd like to open a url in a new browser instance. The following works on desktop:, "_blank", null);

When I run the same code in a UIWebView on ios, nothing happens. Ideally I'd like to open a new instance of mobile safari directed to that url. Does anyone have any ideas of how to do this? I can fall back on catching the url in my objective-c code, but ideally there's something we could do directly in javascript to trigger mobile safari to open,


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment