I have a button in my webView
, which does the following:
myButton.onClick = function(){
window.open("http://myURL.com",'about:blank','Popup_Window','width:200,height:200');
}
Basically it just tries to open another window. I catch this click in my delegate function: like this:
- (void)webView:(WebView *)sender decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener {
[[NSWorkspace sharedWorkspace] openURL:[actionInformation objectForKey:WebActionOriginalURLKey]];
}
and open this link in default browser's new window. The problem is that the width, height properties of this function are get lost. How do I open a default browser with this predefined size?
Thanks in advance